certbot-duckdns/Dockerfile
2021-03-15 20:22:21 +01:00

16 lines
382 B
Docker

FROM alpine:latest
RUN apk update && apk upgrade \
&& apk add \
curl \
certbot \
openssl
RUN mkdir -p /etc/periodic/12h \
&& mkdir -p /etc/periodic/5min
COPY certbot-* duckdns start-certbot-duckdns.sh /usr/local/bin/
COPY etc/periodic/ /etc/periodic/
ENTRYPOINT [ "/bin/sh", "-c" ]
CMD [ "duckdns; certbot-duckdns; start-certbot-duckdns.sh" ]