17 lines
441 B
Docker
Executable File
17 lines
441 B
Docker
Executable File
FROM nginx:stable
|
|
|
|
RUN apt update
|
|
RUN apt upgrade -y
|
|
RUN apt install openssl nginx -y
|
|
|
|
RUN mkdir -p /etc/nginx/ssl
|
|
RUN openssl req -x509 -nodes -out /etc/nginx/ssl/inception.crt -keyout /etc/nginx/ssl/inception.key -subj "/C=FR/ST=IDF/L=Paris/O=42/OU=42/CN=meth.com/UID=meth"
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
COPY static /var/www/static
|
|
RUN chmod -R 777 /var/www/static
|
|
|
|
STOPSIGNAL SIGKILL
|
|
|
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|