autorestic/Dockerfile
2023-03-06 11:46:21 +01:00

14 lines
261 B
Docker

FROM golang:1.20-alpine as builder
WORKDIR /app
COPY go.* .
RUN go mod download
COPY . .
RUN go build
FROM restic/restic:0.15.1
RUN apk add --no-cache rclone bash fuse
COPY --from=builder /app/autorestic /usr/bin/autorestic
ENTRYPOINT []
CMD [ "autorestic" ]