mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-05-03 19:40:30 +00:00
4734bc21b7
Release Please / release-please (push) Has been cancelled
Release Preview / call-reusable-release (push) Has been cancelled
Test / test-nix (push) Has been cancelled
Test / test-win (push) Has been cancelled
Update Restic / update-restic-version (push) Has been cancelled
19 lines
628 B
Docker
19 lines
628 B
Docker
FROM alpine:latest
|
|
LABEL org.opencontainers.image.source="https://github.com/garethgeorge/backrest"
|
|
RUN apk --no-cache add tini ca-certificates curl bash rclone openssh tzdata docker-cli && \
|
|
rclone selfupdate --stable
|
|
RUN mkdir -p /tmp
|
|
|
|
# Copy the binary we built via goreleaser
|
|
COPY backrest /backrest
|
|
COPY docker-entrypoint /docker-entrypoint
|
|
|
|
# Run the binary to install dependencies (may run via QEMU but necessary)
|
|
RUN /backrest --install-deps-only
|
|
|
|
# Setup path for restic
|
|
RUN mkdir -p /bin && mv /root/.local/share/backrest/restic /bin/restic
|
|
|
|
ENTRYPOINT ["/sbin/tini", "--", "/docker-entrypoint"]
|
|
CMD ["/backrest"]
|