feat(nginx/dockerfile): now dockerfile is finished

This commit is contained in:
Raphael 2025-06-14 18:52:49 +02:00
parent 7a00c7fc45
commit 971f30f8f1

View file

@ -0,0 +1,19 @@
FROM alpine:3.21
RUN apk update
RUN apk add nginx openssl bash
RUN mkdir -p /run/nginx /etc/nginx/ssl
COPY conf/nginx.conf /etc/nginx/nginx.conf
COPY tools/generate_ssl_certificate.sh /usr/bin/generate_ssl_certificate
RUN chmod +x /usr/bin/generate_ssl_certificate
RUN /usr/bin/generate_ssl_certificate
USER nginx
EXPOSE 443
CMD ["nginx", "-g", "daemon off;"]