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 # Install certbot's script COPY ./certbot.sh /usr/local/bin/certbot RUN chmod +x /usr/local/bin/certbot # Add ssl group RUN addgroup -S -g 777 ssl # Check monit's config RUN monit -t # Access to certificates and challenges VOLUME /etc/letsencrypt VOLUME /var/lib/letsencrypt