2017-01-01 20:58:42 +00:00
|
|
|
FROM python:2
|
2015-11-22 19:17:01 +00:00
|
|
|
MAINTAINER Henri Dwyer <henri@dwyer.io>
|
|
|
|
|
2016-11-19 21:22:07 +00:00
|
|
|
VOLUME /etc/letsencrypt
|
2016-09-21 12:22:55 +00:00
|
|
|
EXPOSE 80
|
2015-11-22 19:17:01 +00:00
|
|
|
|
2017-01-01 20:58:42 +00:00
|
|
|
RUN apt update && apt install -y cron
|
|
|
|
RUN pip install certbot
|
|
|
|
RUN mkdir /scripts
|
2015-11-22 19:17:01 +00:00
|
|
|
|
2017-01-01 20:58:42 +00:00
|
|
|
ADD ./crontab /etc/cron.d/certbot
|
|
|
|
RUN crontab /etc/cron.d/certbot
|
2015-11-22 19:17:01 +00:00
|
|
|
|
2016-09-21 01:12:59 +00:00
|
|
|
COPY ./scripts/ /scripts
|
|
|
|
RUN chmod +x /scripts/run_certbot.sh
|
|
|
|
|
|
|
|
ENTRYPOINT []
|
2017-01-02 05:34:59 +00:00
|
|
|
CMD ["/bin/bash", "/scripts/entrypoint.sh"]
|