-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: include restic binary in alpine and scratch docker images
- Loading branch information
1 parent
c32874c
commit f7bd9f7
Showing
5 changed files
with
38 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
FROM alpine:latest | ||
RUN apk --no-cache add ca-certificates curl bash rclone openssh tzdata | ||
RUN mkdir -p /tmp | ||
COPY backrest /backrest | ||
RUN /backrest --install-deps-only | ||
RUN mkdir -p /bin && mv /root/.local/share/backrest/* /bin | ||
|
||
ENTRYPOINT ["/backrest"] | ||
COPY backrest /backrest | ||
RUN /backrest --install-deps-only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters