15 lines
293 B
Docker
15 lines
293 B
Docker
|
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" ]
|