add restic

This commit is contained in:
Newnius 2020-11-18 17:28:26 +08:00
parent a371ffcb47
commit 6213dbe2b6
2 changed files with 19 additions and 0 deletions

1
rclone/README.md Normal file
View File

@ -0,0 +1 @@
[duplicated] Refer to the official images [rclone/rclone](https://hub.docker.com/r/rclone/rclone)

18
restic/Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM golang AS builder
RUN git clone https://github.com/restic/restic.git /workspace
WORKDIR /workspace/
RUN go run build.go
RUN ./restic version
FROM rclone/rclone:latest
MAINTAINER Newnius <newnius.cn@gmail.com>
COPY --from=builder /workspace/restic /usr/local/bin/
CMD [ "restic" ]