26 lines
593 B
Docker
26 lines
593 B
Docker
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"] |