myos/docker/certbot/Dockerfile

63 lines
1.8 KiB
Docker
Raw Normal View History

2023-01-09 21:13:24 +01:00
FROM python:3.11-alpine as dist
2022-10-21 03:50:14 +02:00
LABEL maintainer aynic.os <support+docker@asycn.io>
ARG DOCKER_BUILD_DIR
2023-01-09 21:13:24 +01:00
ARG CERTBOT_VERSION=1.32.0
2022-10-21 03:50:14 +02:00
# RUN pip install \
RUN apk --no-cache add --virtual .build-deps \
2023-01-09 21:13:24 +01:00
augeas-dev \
2022-10-21 03:50:14 +02:00
build-base \
libffi-dev \
&& pip install \
2023-01-09 21:13:24 +01:00
acme==$CERTBOT_VERSION \
certbot==$CERTBOT_VERSION \
# certbot-apache \
2022-10-21 03:50:14 +02:00
certbot-dns-azure \
# certbot-dns-bunny \
2023-01-09 21:13:24 +01:00
certbot-dns-clouddns \
2022-10-21 03:50:14 +02:00
certbot-dns-cloudflare \
2023-01-09 21:13:24 +01:00
certbot-dns-cloudxns \
2022-10-21 03:50:14 +02:00
certbot-dns-digitalocean \
2023-01-09 21:13:24 +01:00
certbot-dns-dnsmadeeasy \
certbot-dns-dnsimple \
2022-10-21 03:50:14 +02:00
# certbot-dns-gehirn \
2023-01-09 21:13:24 +01:00
certbot-dns-godaddy \
2022-10-21 03:50:14 +02:00
certbot-dns-google \
certbot-dns-infomaniak \
# certbot-dns-inwx \
certbot-dns-ispconfig \
2023-01-09 21:13:24 +01:00
certbot-dns-lightsail \
2022-10-21 03:50:14 +02:00
certbot-dns-linode \
2023-01-09 21:13:24 +01:00
certbot-dns-luadns \
certbot-dns-njalla \
2022-10-21 03:50:14 +02:00
# certbot-dns-nsone \
certbot-dns-ovh \
certbot-dns-rfc2136 \
certbot-dns-route53 \
# certbot-dns-sakuracloud \
certbot-dns-standalone \
2023-01-09 21:13:24 +01:00
certbot-dns-yandexcloud \
2022-10-21 03:50:14 +02:00
# certbot-ext-auth future \
2023-01-09 21:13:24 +01:00
certbot-nginx \
2022-10-21 03:50:14 +02:00
certbot-plugin-gandi \
certbot-s3front \
2023-01-09 21:13:24 +01:00
certbot_dns_duckdns \
certbot_dns_porkbun \
2022-10-21 03:50:14 +02:00
# letsencrypt-pritunl \
# letsencrypt-proxmox \
2023-01-09 21:13:24 +01:00
&& runDeps="$( \
scanelf --needed --nobanner --recursive /usr \
| awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' \
| xargs -r apk info --installed \
| sort -u \
)" \
&& apk del .build-deps \
&& apk add --no-cache --virtual .run-deps $runDeps
2022-10-21 03:50:14 +02:00
COPY ${DOCKER_BUILD_DIR}/certbot-renew /etc/periodic/daily/
COPY ${DOCKER_BUILD_DIR}/docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["--help"]
FROM dist as master