2022-06-24 16:22:19 +02:00
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
RUN apk --no-cache add \
|
|
|
|
certbot \
|
|
|
|
openssl \
|
|
|
|
netcat-openbsd \
|
|
|
|
python3 \
|
|
|
|
py3-pip \
|
2023-12-11 13:53:16 +01:00
|
|
|
&& python3 -m pip install --break-system-packages certbot-dns-ovh
|
2022-06-24 16:22:19 +02:00
|
|
|
|
|
|
|
RUN mkdir -p /etc/periodic/12h
|
|
|
|
COPY start.sh certbot-ovh.sh /usr/local/bin/
|
|
|
|
COPY certbot-ovh.ini.tmpl /etc/certbot-ovh.ini.tmpl
|
|
|
|
COPY periodic/12h/certbot /etc/periodic/12h
|
|
|
|
|
|
|
|
VOLUME [ "/etc/letsencrypt/" ]
|
|
|
|
ENTRYPOINT [ "/bin/sh", "-c" ]
|
|
|
|
CMD [ "start.sh" ]
|