autorestic/Dockerfile

14 lines
261 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
2024-01-11 17:56:35 +00:00
RUN apk add --no-cache rclone bash curl
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" ]