29 lines
633 B
Docker
Executable File
29 lines
633 B
Docker
Executable File
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"]
|