mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-05-06 04:50:35 +00:00
13 lines
367 B
Docker
13 lines
367 B
Docker
FROM golang:alpine as gobuild
|
|
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=gobuild /tmp-orig /tmp
|
|
COPY --from=gobuild /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
COPY --from=gobuild /bin /bin
|
|
|
|
ENTRYPOINT ["/backrest"]
|
|
COPY backrest /backrest |