forked from henridwyer/docker-letsencrypt-cron
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (18 loc) · 761 Bytes
/
Dockerfile
File metadata and controls
24 lines (18 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3-alpine
MAINTAINER WebitDesign GbR <development@webitdesign.de>
VOLUME /certs
VOLUME /etc/letsencrypt
EXPOSE 80 443
RUN apk add --no-cache --virtual .build-deps linux-headers gcc musl-dev curl\
&& apk add --no-cache libffi-dev openssl-dev dialog\
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && source $HOME/.cargo/env\
&& pip install --no-cache-dir setuptools wheel ruamel.yaml certbot\
&& apk del .build-deps curl\
&& rustup self uninstall -y\
&& mkdir /scripts
ENV PATH="/scripts:${PATH}"
#ADD crontab /etc/periodic/hourly/
COPY ./scripts/ /scripts
RUN chmod +x /scripts/ -R && ln -s /scripts/renew /etc/periodic/hourly/renewcerts
ENTRYPOINT ["/scripts/entrypoint.sh"]
CMD ["/scripts/startup.sh"]