2022-11-15 20:03:57 +08:00
|
|
|
FROM debian:bullseye-20221114-slim
|
2021-11-30 18:20:42 +08:00
|
|
|
|
|
|
|
RUN set -ex; \
|
|
|
|
\
|
2022-10-25 02:41:56 +08:00
|
|
|
echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list; \
|
2022-03-09 20:49:09 +08:00
|
|
|
apt-get update; \
|
2022-10-25 01:46:09 +08:00
|
|
|
apt-get install -y --no-install-recommends borgbackup -t bullseye-backports; \
|
2022-03-09 20:49:09 +08:00
|
|
|
apt-get install -y --no-install-recommends \
|
2021-11-30 18:20:42 +08:00
|
|
|
rsync \
|
2022-03-09 20:49:09 +08:00
|
|
|
fuse \
|
|
|
|
python3-llfuse \
|
2022-03-30 22:35:04 +08:00
|
|
|
jq \
|
2022-03-09 20:49:09 +08:00
|
|
|
; \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2021-11-30 18:20:42 +08:00
|
|
|
|
|
|
|
VOLUME /root
|
|
|
|
|
|
|
|
COPY start.sh /usr/bin/
|
|
|
|
COPY backupscript.sh /
|
|
|
|
RUN chmod +x /usr/bin/start.sh; \
|
|
|
|
chmod +x /backupscript.sh
|
|
|
|
|
|
|
|
USER root
|
|
|
|
ENTRYPOINT ["start.sh"]
|