Base
This commit is contained in:
17
nginx/Dockerfile
Normal file
17
nginx/Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
FROM alpine:3.19
|
||||
|
||||
RUN apk update
|
||||
|
||||
RUN apk add nginx
|
||||
RUN mkdir -p /etc/nginx/ssl
|
||||
RUN apk add openssl
|
||||
RUN openssl req -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out /etc/nginx/ssl/ping.crt -keyout /etc/nginx/ssl/ping.key -subj "/C=CH/ST=Vaud/L=Renens/O=42/OU=42/CN=ft_archive"
|
||||
RUN mkdir -p /var/run/nginx
|
||||
RUN mkdir -p /usr/share/nginx/html
|
||||
RUN mkdir -p /usr/share/nginx/static
|
||||
COPY ./conf/default /etc/nginx/conf.d/default.conf
|
||||
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY ./static /usr/share/nginx/static
|
||||
COPY ./html /usr/share/nginx/html
|
||||
|
||||
CMD [ "nginx", "-g", "daemon off;" ]
|
||||
Reference in New Issue
Block a user