Re-structured nginx config

This commit is contained in:
Jef Roosens 2021-01-05 14:28:58 +01:00
parent da1df2e798
commit e39e11b3fe
10 changed files with 11 additions and 2 deletions

14
nginx/build/Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM nginx:stable-alpine
RUN apk add --no-cache certbot
COPY entrypoint.sh ./entrypoint.sh
RUN chmod +x ./entrypoint.sh
RUN mkdir /var/lib/certbot
COPY renew /etc/periodic/weekly/renew
RUN chmod +x /etc/periodic/weekly/renew
RUN /usr/sbin/crond -f -d 8 &
ENTRYPOINT [ "./entrypoint.sh" ]