containers-borg/Dockerfile

23 lines
536 B
Text
Raw Permalink Normal View History

2023-08-24 14:50:53 +00:00
ARG ALPINE_VERSION=3.18.3
ARG BASE_IMAGE=gitea.nulo.in/sutty/monit
2021-10-03 23:19:00 +00:00
FROM ${BASE_IMAGE}:${ALPINE_VERSION}
2024-06-21 15:21:51 +00:00
LABEL org.opencontainers.image.authors="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
2023-09-28 13:22:09 +00:00
RUN apk add --no-cache borgbackup openssh-client zulip-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