mirror of
https://github.com/garethgeorge/backrest.git
synced 2025-12-12 00:35:34 +00:00
16 lines
477 B
Docker
16 lines
477 B
Docker
FROM alpine:latest AS alpine
|
|
RUN apk add --no-cache ca-certificates tini-static
|
|
RUN mkdir /tmp-orig
|
|
COPY backrest /backrest
|
|
RUN /backrest --install-deps-only
|
|
RUN mkdir -p /bin && mv /root/.local/share/backrest/* /bin
|
|
|
|
FROM scratch
|
|
COPY --from=alpine /tmp-orig /tmp
|
|
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
COPY --from=alpine /bin /bin
|
|
COPY --from=alpine /sbin/tini-static /tini
|
|
COPY backrest /backrest
|
|
|
|
ENTRYPOINT ["/tini", "--"]
|
|
CMD ["/backrest"] |