This commit is contained in:
bel
2021-09-14 06:38:09 -06:00
commit 9684eedac7
9 changed files with 180 additions and 0 deletions

28
borg/Dockerfile Executable file
View File

@@ -0,0 +1,28 @@
FROM frolvlad/alpine-glibc:alpine-3.9_glibc-2.29
RUN apk update && apk add --no-cache \
python3 \
curl \
bash
WORKDIR /opt
RUN curl -L \
https://github.com/borgbackup/borg/releases/download/1.1.9/borg-linux64 \
> ./borg \
&& chmod +x ./borg
RUN pip3 install --upgrade borgmatic \
&& generate-borgmatic-config \
&& cp /etc/borgmatic/config.yaml /etc/borgmatic/sample.config.yaml
RUN mkdir -p /backup /mnt
VOLUME /etc/borgmatic/
VOLUME /mnt
VOLUME /backup
ENV BORG_PASSPHRASE=a
COPY ./entrypoint.sh ./entrypoint.sh
COPY ./config.yaml /etc/borgmatic/config.yaml
CMD []
ENTRYPOINT ["bash", "entrypoint.sh"]