ARG ALPINE_VERSION=3.18.3 ARG BASE_IMAGE=gitea.nulo.in/sutty/monit FROM ${BASE_IMAGE}:${ALPINE_VERSION} LABEL org.opencontainers.image.authors="f@sutty.nl" ENV BORG_HOST_ID borg ENV BORG_PASSPHRASE "" ENV KEEP 30 ENV SSH_ALIAS "" ENV SSH_SERVER "" ENV SSH_USER root ENV SSH_PORT 22 RUN apk add --no-cache borgbackup openssh-client zulip-client COPY ./monit.conf /etc/monit.d/borg.conf COPY ./backup.sh /usr/local/bin/backup COPY ./ssh_config /root/.ssh/config RUN chmod -R u=rX,g=,o= /root/.ssh VOLUME /srv/data VOLUME /srv/backups