containers-certbot/Dockerfile

16 lines
468 B
Docker

ARG ALPINE_VERSION=3.18.3
ARG BASE_IMAGE=gitea.nulo.in/sutty/monit
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
MAINTAINER "f <f@sutty.nl>"
RUN addgroup -S -g 777 ssl
RUN install -dm 2700 -o root -g root /root/.ssh
RUN apk add --no-cache certbot jq wget openssh-client rsync certbot-dns-standalone
COPY ./monit.conf /etc/monit.d/certbot.conf
COPY ./certbotd.sh /usr/local/bin/certbotd
COPY ./ssh_config /root/.ssh/config
VOLUME /etc/letsencrypt
VOLUME /var/lib/letsencrypt