Dockerfiles/restic/Dockerfile
2020-11-18 17:28:26 +08:00

19 lines
294 B
Docker

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" ]