mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-12-16 02:46:45 +00:00
add restic
This commit is contained in:
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" ]
|
||||
Reference in New Issue
Block a user