all-in-one/Containers/borgbackup/Dockerfile

24 lines
576 B
Text
Raw Normal View History

FROM debian:bullseye-20221114-slim
2021-11-30 18:20:42 +08:00
RUN set -ex; \
\
echo "deb http://deb.debian.org/debian bullseye-backports main" >> /etc/apt/sources.list; \
apt-get update; \
apt-get install -y --no-install-recommends borgbackup -t bullseye-backports; \
apt-get install -y --no-install-recommends \
2021-11-30 18:20:42 +08:00
rsync \
fuse \
python3-llfuse \
jq \
; \
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"]