dotfiles/backup/Dockerfile

19 lines
451 B
Docker
Raw Normal View History

2020-06-03 16:51:40 +03:00
FROM alpine:3.10
# install dependencies
RUN apk add restic
RUN apk add curl
# install rclone
RUN curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip &&\
unzip rclone-current-linux-amd64.zip &&\
cd rclone-*-linux-amd64 &&\
cp rclone /usr/bin/ &&\
chown root:root /usr/bin/rclone &&\
chmod 755 /usr/bin/rclone
COPY restic_backup.sh /usr/bin/
RUN chmod +x /usr/bin/restic_backup.sh
ENTRYPOINT ["restic_backup.sh"]