mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-06 08:11:54 +00:00
21 lines
309 B
Docker
21 lines
309 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/
|
|
|
|
ENTRYPOINT []
|
|
|
|
CMD [ "restic" ]
|