From f0351aa2a64d448538c9bffe7d57da6cb496fc6d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 5 Jul 2026 21:14:39 +0200 Subject: [PATCH] ++certbot --- ungleich-certbot/Dockerfile_1.2.0 | 12 ++++++++++++ ungleich-certbot/entrypoint.sh | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 ungleich-certbot/Dockerfile_1.2.0 diff --git a/ungleich-certbot/Dockerfile_1.2.0 b/ungleich-certbot/Dockerfile_1.2.0 new file mode 100644 index 0000000..e79401f --- /dev/null +++ b/ungleich-certbot/Dockerfile_1.2.0 @@ -0,0 +1,12 @@ +FROM nginx:1.31.2-alpine + +RUN mkdir -p /nginx /www_http +COPY nginx-http-redir.conf /nginx/default.conf + +# For renewing the certificates +COPY renew_cert.sh /etc/periodic/daily/renew_cert + +RUN apk update && apk add certbot bind-tools + +COPY entrypoint.sh / +CMD ["/entrypoint.sh"] diff --git a/ungleich-certbot/entrypoint.sh b/ungleich-certbot/entrypoint.sh index f7f7799..d4f3e78 100755 --- a/ungleich-certbot/entrypoint.sh +++ b/ungleich-certbot/entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/sh - +# Nico Schottelius, updated 2026-07-05 if [ -z "$DOMAIN" -o -z "$EMAIL" ]; then echo Missing DOMAIN or EMAIL parameter - aborting. >&2