all-in-one/Containers/borgbackup/Dockerfile

26 lines
489 B
Text
Raw Permalink Normal View History

# syntax=docker/dockerfile:latest
FROM alpine:3.20.3
2021-11-30 18:20:42 +08:00
RUN set -ex; \
\
apk upgrade --no-cache -a; \
apk add --no-cache \
util-linux-misc \
bash \
borgbackup \
2021-11-30 18:20:42 +08:00
rsync \
fuse \
py3-llfuse \
jq
2021-11-30 18:20:42 +08:00
VOLUME /root
COPY --chmod=770 *.sh /
ENTRYPOINT ["/start.sh"]
# hadolint ignore=DL3002
USER root
2021-11-30 18:20:42 +08:00
LABEL com.centurylinklabs.watchtower.enable="false"
ENV BORG_RETENTION_POLICY="--keep-within=7d --keep-weekly=4 --keep-monthly=6"