docker-simple/Dockerfile
2017-07-19 21:51:22 -07:00

21 lines
506 B
Docker

FROM ubuntu:xenial
RUN apt-get update && \
apt-get install -y python3-pip cron && \
pip3 install simp_le-client && \
find /etc/cron* -type f -delete && \
useradd simplecert && \
touch /etc/crontab
ADD start /start
ADD simplewrapper.py /usr/local/bin/simplewrapper.py
ADD crontab /etc/cron.d/
RUN chmod +x /start /usr/local/bin/simplewrapper.py && \
chmod 644 /etc/cron.d/crontab
ENTRYPOINT ["/start"]
VOLUME /srv/acme/webroot/.well-known/acme-challenge/
VOLUME /srv/acme/conf/