use restic as base image

This commit is contained in:
2022-12-09 17:24:03 +01:00
parent 6990bf6adc
commit d6acab94a5
2 changed files with 11 additions and 2 deletions

View File

@@ -6,7 +6,8 @@ RUN go mod download
COPY . .
RUN go build
FROM alpine
RUN apk add --no-cache restic rclone bash openssh
FROM restic/restic:0.14.0
RUN apk add --no-cache rclone bash
COPY --from=builder /app/autorestic /usr/bin/autorestic
ENTRYPOINT []
CMD [ "autorestic" ]