he_dns_docker/Dockerfile

18 lines
549 B
Docker

FROM ubuntu
ENV TZ="America/New_York"
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install \
certbot \
git \
python3-setuptools \
python3-pip
RUN cd /opt && git clone https://github.com/gentoo-root/certbot-dns-henet.git
RUN cd /opt/certbot-dns-henet && python3 setup.py build
RUN cd /opt/certbot-dns-henet && python3 setup.py test
RUN cd /opt/certbot-dns-henet && python3 setup.py install
RUN install -m 700 -d /etc/letsencrypt/dns-credentials
ADD henet /etc/letsencrypt/dns-credentials/henet
CMD tail -f /dev/null