nginx-certbot/Dockerfile

20 lines
429 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
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\
&& apk add --no-cache libffi-dev openssl-dev\
&& 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"]