archive
This commit is contained in:
28
borg/Dockerfile
Executable file
28
borg/Dockerfile
Executable 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"]
|
||||
Reference in New Issue
Block a user