crusade-tracker/nginx.dockerfile

13 lines
357 B
Plaintext
Raw Permalink Normal View History

2021-01-18 20:27:50 +00:00
FROM nginx
COPY ./nginx.conf /etc/nginx/nginx.conf
RUN mkdir -p /certs/private \
&& mkdir -p /certs/public \
&& chown -R nginx. /certs \
&& chmod 400 /certs/private \
&& chmod 700 /certs/public
COPY fullchain.pem /certs/public/fullchain.pem
COPY privkey.pem /certs/private/privkey.pem
EXPOSE 80
EXPOSE 443
CMD ["nginx", "-g", "daemon off;"]