FROM sutty/monit:latest MAINTAINER "f " # 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