From edf27d497e069b455708840741bfaa6713f64c47 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 16 May 2019 15:10:04 +1000 Subject: [PATCH] Added cloudflare DNS support --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 6eb1a02..c38e369 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,11 @@ RUN chmod 444 /etc/nginx/default.d/ssl/* && chmod 400 /etc/nginx/default.d/ssl/d RUN apt-get update && apt-get install certbot -yy \ && rm -rf /var/lib/apt/lists/* /tmp/* +# Add Cloudflare Certbot +RUN echo "deb http://ftp.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list \ + && apt-get update && apt-get -t stretch-backports install python3-certbot-dns-cloudflare -yy \ + && rm -rf /var/lib/apt/lists/* /tmp/* + #RUN cd /usr/local/sbin && \ # curl -O https://dl.eff.org/certbot-auto && \ # chmod +x certbot-auto && ./certbot-auto -n --install-only