autorestic/Dockerfile

14 lines
272 B
Docker
Raw Permalink Normal View History

FROM golang:1.22-alpine as builder
2021-11-20 15:59:13 +00:00
WORKDIR /app
COPY go.* .
RUN go mod download
COPY . .
RUN go build
2024-02-09 13:18:24 +00:00
FROM restic/restic:0.16.4
RUN apk add --no-cache rclone bash curl 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" ]