autorestic/Dockerfile

14 lines
256 B
Docker
Raw Normal View History

2022-04-14 12:05:19 +02:00
FROM golang:1.18-alpine as builder
2021-11-20 16:59:13 +01:00
WORKDIR /app
COPY go.* .
RUN go mod download
COPY . .
RUN go build
2022-12-09 17:24:03 +01:00
FROM restic/restic:0.14.0
RUN apk add --no-cache rclone bash
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" ]