mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-06 08:11:54 +00:00
add restic
This commit is contained in:
parent
a371ffcb47
commit
6213dbe2b6
1
rclone/README.md
Normal file
1
rclone/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
[duplicated] Refer to the official images [rclone/rclone](https://hub.docker.com/r/rclone/rclone)
|
18
restic/Dockerfile
Normal file
18
restic/Dockerfile
Normal 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" ]
|
Loading…
Reference in New Issue
Block a user