localenv/nginx/Dockerfile
2023-08-05 22:10:48 +02:00

9 lines
305 B
Docker

FROM nginx:stable-alpine3.17-slim
# embed the configuration directly in the image
COPY nginx/nginx.conf /etc/nginx/nginx.conf
COPY nginx/cors_preflight.conf /etc/nginx/cors_preflight.conf
# init ssl connection
RUN mkdir /etc/nginx/ssl
COPY nginx/ssl/certificate.crt nginx/ssl/private.key /etc/nginx/ssl/