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