Added cloudflare DNS support

This commit is contained in:
Deon George 2019-05-16 15:10:04 +10:00
parent e516cd4606
commit edf27d497e

View File

@ -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 \ RUN apt-get update && apt-get install certbot -yy \
&& rm -rf /var/lib/apt/lists/* /tmp/* && 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 && \ #RUN cd /usr/local/sbin && \
# curl -O https://dl.eff.org/certbot-auto && \ # curl -O https://dl.eff.org/certbot-auto && \
# chmod +x certbot-auto && ./certbot-auto -n --install-only # chmod +x certbot-auto && ./certbot-auto -n --install-only