Files
backrest/Dockerfile.alpine
Gareth George 42054f4a22
Some checks failed
Build Snapshot Release / build (push) Has been cancelled
Release Please / release-please (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
feat: add arg forwarding to docker-entrypoint and backrestmon
2025-08-03 10:58:32 -07:00

19 lines
601 B
Docker

FROM golang:1.24-alpine AS builder
WORKDIR /src
COPY . .
RUN go build -o /docker-entrypoint -ldflags "-s -w" ./cmd/docker-entrypoint
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
RUN mkdir -p /tmp
COPY backrest /backrest
RUN /backrest --install-deps-only
RUN mkdir -p /bin && mv /root/.local/share/backrest/restic /bin/restic
COPY --from=builder /docker-entrypoint /docker-entrypoint
ENTRYPOINT ["/sbin/tini", "--", "/docker-entrypoint"]
CMD ["/backrest"]