autorestic/Dockerfile

14 lines
267 B
Docker
Raw Normal View History

FROM golang:1.20-alpine as builder
2021-11-20 15:59:13 +00:00
WORKDIR /app
COPY go.* .
RUN go mod download
COPY . .
RUN go build
2023-10-02 09:08:28 +00:00
FROM restic/restic:0.16.0
2023-11-18 19:56:43 +00:00
RUN apk add --no-cache rclone bash docker-cli
2021-11-20 15:59:13 +00:00
COPY --from=builder /app/autorestic /usr/bin/autorestic
2022-12-09 16:24:03 +00:00
ENTRYPOINT []
2021-11-20 15:59:13 +00:00
CMD [ "autorestic" ]