library/certbot/Dockerfile

26 lines
593 B
Docker
Raw Permalink Normal View History

2018-10-27 03:58:37 +00:00
FROM certbot/certbot:latest
MAINTAINER LOAFLE Docker Maintainers "rnd@loafle.com"
COPY conf/crontab /var/spool/cron/crontabs/certbot-renew
COPY bin/* /opt/letsencrypt/bin/
RUN chmod +x /opt/letsencrypt/bin/*.sh \
&& crontab /var/spool/cron/crontabs/certbot-renew
ENV CERT_DOMAINS="" \
CERT_EMAIL="" \
CERT_RSA_KEY_SIZE=4096 \
CERT_STAGING=true
ENV PATH "$PATH:/opt/letsencrypt/bin"
VOLUME /etc/letsencrypt
VOLUME /var/log/letsencrypt/
VOLUME /usr/share/nginx/html
VOLUME /etc/haproxy/ssl/
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["crond", "-f"]