mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-05-05 20:40:37 +00:00
12 lines
358 B
Docker
12 lines
358 B
Docker
FROM golang:alpine as gobuild
|
|
RUN mkdir /tmp-orig
|
|
COPY resticweb /resticweb
|
|
RUN /resticweb --install-deps=true
|
|
|
|
FROM scratch
|
|
COPY --from=gobuild /root/.local/share/resticui/ /.local/share/resticui/
|
|
COPY --from=gobuild /tmp-orig /tmp
|
|
COPY --from=gobuild /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
|
|
ENTRYPOINT ["/resticweb"]
|
|
COPY resticweb /resticweb |