nginx-certbot/Dockerfile

22 lines
470 B
Docker
Raw Normal View History

2016-09-21 01:12:59 +00:00
FROM python:2-alpine
2015-11-22 19:17:01 +00:00
MAINTAINER Henri Dwyer <henri@dwyer.io>
2016-09-21 01:12:59 +00:00
VOLUME /certs
VOLUME /etc/letsencrypt
2016-09-21 12:22:55 +00:00
EXPOSE 80
2015-11-22 19:17:01 +00:00
2016-09-21 01:12:59 +00:00
RUN apk add --no-cache --virtual .build-deps linux-headers gcc musl-dev\
2016-09-21 02:50:27 +00:00
&& apk add --no-cache libffi-dev openssl-dev dialog\
2016-09-21 01:12:59 +00:00
&& pip install certbot\
&& apk del .build-deps\
&& mkdir /scripts
2015-11-22 19:17:01 +00:00
2016-09-21 01:12:59 +00:00
ADD crontab /etc/crontabs
RUN crontab /etc/crontabs/crontab
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 []
CMD ["crond", "-f"]