Another attempt

This commit is contained in:
Marwolf
2018-08-18 16:52:28 -04:00
parent 4e7f767498
commit 82bc1016d5
5 changed files with 112 additions and 10 deletions

21
etc/certbot/Dockerfile Executable file
View File

@@ -0,0 +1,21 @@
FROM python:2-alpine
MAINTAINER Henri Dwyer <henri@dwyer.io>
VOLUME /certs
VOLUME /etc/letsencrypt
EXPOSE 80
RUN apk add --no-cache --virtual .build-deps linux-headers gcc musl-dev\
&& apk add --no-cache libffi-dev openssl-dev dialog\
&& pip install certbot\
&& apk del .build-deps\
&& mkdir /scripts
ADD crontab /etc/crontabs
RUN crontab /etc/crontabs/crontab
COPY ./scripts/ /scripts
RUN chmod +x /scripts/run_certbot.sh
ENTRYPOINT []
CMD ["crond", "-f"]