all-in-one/Containers/borgbackup/Dockerfile

24 lines
454 B
Text
Raw Normal View History

FROM alpine:3.15.0
2021-11-30 18:20:42 +08:00
RUN set -ex; \
\
apk add --update --no-cache \
bash \
2021-11-30 18:20:42 +08:00
borgbackup \
rsync \
fuse
Run set -ex; \
\
echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
apk add --update --no-cache py3-llfuse
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"]