docker-images/images/certbot/Dockerfile
Starbeamrainbowlabs 9ea5be22cb
certbot: use certbot-auto & pip instead to get the latest version
we need this, because otherwise we don't get Cloudflare token support 
:-/
2020-11-29 01:35:24 +00:00

30 lines
822 B
Docker

ARG REPO_LOCATION
# ARG BASE_VERSION
FROM ${REPO_LOCATION}minideb AS builder
RUN install_packages curl ca-certificates && \
curl -sS https://dl.eff.org/certbot-auto -o /srv/certbot-auto
FROM ${REPO_LOCATION}minideb
COPY --from=builder /srv/certbot-auto /srv/certbot-auto
RUN /srv/certbot-auto --debug --noninteractive --install-only && \
install_packages python3-pip
WORKDIR /opt/eff.org/certbot/venv
RUN source bin/activate \
&& pip install certbot-dns-cloudflare \
&& deactivate
# Only required if we use acme.sh instead of certbot: openssl openssh-client coreutils dnsutils curl socat tzdata tar oathtool
VOLUME /srv/configdir /srv/workdir /srv/logsdir
USER 2000:2000
ENTRYPOINT [ "/usr/bin/certbot", \
"--config-dir", "/srv/configdir", \
"--work-dir", "/srv/workdir", \
"--logs-dir", "/srv/logsdir" ]