2020-03-30 21:14:53 -07:00
|
|
|
FROM ubuntu:focal
|
2017-07-19 21:51:22 -07:00
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y python3-pip cron && \
|
2020-03-30 21:14:53 -07:00
|
|
|
pip3 install simp_le-client==0.18.0 && \
|
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
2017-07-19 21:51:22 -07:00
|
|
|
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/
|