autorestic/Dockerfile

14 lines
272 B
Docker
Raw Normal View History

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