containers-certbot/Dockerfile

26 lines
610 B
Docker
Raw Normal View History

2021-10-03 23:19:00 +00:00
ARG ALPINE_VERSION=3.13.6
ARG BASE_IMAGE=sutty/monit
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
2019-09-10 23:10:18 +00:00
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
2020-09-07 23:16:49 +00:00
RUN apk add --no-cache openssh-client rsync
RUN install -dm 2750 -o root -g root /root/.ssh
COPY ./ssh_config /root/.ssh/config
2019-09-10 23:17:04 +00:00
# Access to certificates and challenges
VOLUME /etc/letsencrypt
VOLUME /var/lib/letsencrypt