This commit is contained in:
Raphael Rouiller
2024-07-08 14:06:52 +02:00
commit aa54287126
96 changed files with 2718 additions and 0 deletions

17
nginx/Dockerfile Normal file
View 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;" ]