restic/docker/Dockerfile

19 lines
381 B
Docker
Raw Normal View History

2021-09-20 08:18:48 -04:00
FROM golang:1.16-alpine AS builder
2017-06-23 04:26:51 -04:00
2021-09-20 08:18:48 -04:00
WORKDIR /go/src/github.com/restic/restic
# Caching dependencies
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go run build.go
FROM alpine:latest AS restic
2017-06-23 04:26:51 -04:00
2020-11-27 02:05:19 -05:00
RUN apk add --update --no-cache ca-certificates fuse openssh-client tzdata
2017-06-23 04:38:19 -04:00
2021-09-20 08:18:48 -04:00
COPY --from=builder /go/src/github.com/restic/restic/restic /usr/bin
2017-06-23 04:26:51 -04:00
ENTRYPOINT ["/usr/bin/restic"]