containers-borg/Dockerfile

23 lines
485 B
Text
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-11 00:15:08 +00:00
ENV BORG_HOST_ID borg
ENV BORG_PASSPHRASE ""
ENV KEEP 30
2020-09-03 15:43:52 +00:00
ENV SSH_ALIAS ""
ENV SSH_SERVER ""
ENV SSH_USER root
ENV SSH_PORT 22
2020-09-04 12:29:04 +00:00
RUN apk add --no-cache borgbackup openssh-client
2019-09-11 00:15:08 +00:00
COPY ./monit.conf /etc/monit.d/borg.conf
COPY ./backup.sh /usr/local/bin/backup
2020-09-03 15:43:52 +00:00
COPY ./ssh_config /root/.ssh/config
RUN chmod -R u=rX,g=,o= /root/.ssh
2019-09-11 00:15:08 +00:00
VOLUME /srv/data
VOLUME /srv/backups