containers-borg/Dockerfile
f a329bbf0ec
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
+x
2022-03-15 18:53:53 -03:00

22 lines
485 B
Docker

ARG ALPINE_VERSION=3.13.6
ARG BASE_IMAGE=sutty/monit
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
MAINTAINER "f <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
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