autorestic/Dockerfile

14 lines
261 B
Docker
Raw Normal View History

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