Re-structured nginx config
This commit is contained in:
parent
da1df2e798
commit
e39e11b3fe
10 changed files with 11 additions and 2 deletions
14
nginx/build/Dockerfile
Normal file
14
nginx/build/Dockerfile
Normal 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" ]
|
||||
Reference in a new issue