2024-02-16 23:21:18 +08:00
|
|
|
# syntax=docker/dockerfile:latest
|
2024-09-09 20:36:31 +08:00
|
|
|
FROM alpine:3.20.3
|
2021-11-30 18:20:42 +08:00
|
|
|
|
|
|
|
RUN set -ex; \
|
|
|
|
\
|
2024-04-17 23:52:42 +08:00
|
|
|
apk upgrade --no-cache -a; \
|
2022-12-23 00:50:49 +08:00
|
|
|
apk add --no-cache \
|
2023-02-20 17:47:11 +08:00
|
|
|
util-linux-misc \
|
2022-12-23 00:50:49 +08:00
|
|
|
bash \
|
|
|
|
borgbackup \
|
2021-11-30 18:20:42 +08:00
|
|
|
rsync \
|
2022-03-09 20:49:09 +08:00
|
|
|
fuse \
|
2022-12-23 00:50:49 +08:00
|
|
|
py3-llfuse \
|
|
|
|
jq
|
2021-11-30 18:20:42 +08:00
|
|
|
|
|
|
|
VOLUME /root
|
|
|
|
|
2023-05-03 23:42:04 +08:00
|
|
|
COPY --chmod=770 *.sh /
|
|
|
|
|
|
|
|
ENTRYPOINT ["/start.sh"]
|
2023-08-23 22:06:17 +08:00
|
|
|
# hadolint ignore=DL3002
|
2023-06-03 20:56:05 +08:00
|
|
|
USER root
|
2021-11-30 18:20:42 +08:00
|
|
|
|
2023-06-26 06:56:08 +08:00
|
|
|
LABEL com.centurylinklabs.watchtower.enable="false"
|
2023-04-27 22:01:16 +08:00
|
|
|
ENV BORG_RETENTION_POLICY="--keep-within=7d --keep-weekly=4 --keep-monthly=6"
|