mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-05-06 04:50:35 +00:00
d6f6875771
Docs / build (push) Has been cancelled
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
Docs / deploy (push) Has been cancelled
Co-authored-by: Gareth <garethgeorge97@gmail.com>
20 lines
697 B
Docker
20 lines
697 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
|
|
|
|
ARG TARGETPLATFORM
|
|
# Binaries are staged per-platform by goreleaser dockers_v2
|
|
COPY $TARGETPLATFORM/backrest /backrest
|
|
COPY $TARGETPLATFORM/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"]
|