containers-certbot/Dockerfile

22 lines
500 B
Text
Raw Normal View History

2019-09-10 23:10:18 +00:00
FROM sutty/monit:latest
MAINTAINER "f <f@sutty.nl>"
2019-09-10 23:17:04 +00:00
# Install requisites
RUN apk add --no-cache certbot jq wget
# Run certbot
COPY ./monit.conf /etc/monit.d/certbot.conf
# Get more output
RUN echo "set limits { programoutput: 1 MB }" >> /etc/monit.d/limits.conf
# Install certbot's script
COPY ./certbot.sh /usr/local/bin/certbot
RUN chmod +x /usr/local/bin/certbot
# Check monit's config
RUN monit -t
# Access to certificates and challenges
VOLUME /etc/letsencrypt
VOLUME /var/lib/letsencrypt