use restic as base image

This commit is contained in:
cupcakearmy 2022-12-09 17:24:03 +01:00
parent 6990bf6adc
commit d6acab94a5
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F
2 changed files with 11 additions and 2 deletions

8
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,8 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"

View File

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