-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
20 additions
and
19 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 |
---|---|---|
|
@@ -29,6 +29,8 @@ WORKDIR /go/src/github.com/vmware-tanzu/velero | |
|
||
COPY . /go/src/github.com/vmware-tanzu/velero | ||
|
||
RUN apt-get update && apt-get install -y bzip2 | ||
|
||
FROM --platform=$BUILDPLATFORM builder-env as builder | ||
|
||
ARG TARGETOS | ||
|
@@ -43,8 +45,8 @@ ENV GOOS=${TARGETOS} \ | |
GOARM=${TARGETVARIANT} | ||
|
||
RUN mkdir -p /output/usr/bin && \ | ||
bash ./hack/download-restic.sh && \ | ||
export GOARM=$( echo "${GOARM}" | cut -c2-) && \ | ||
bash ./hack/build-restic.sh && \ | ||
go build -o /output/${BIN} \ | ||
-ldflags "${LDFLAGS}" ${PKG}/cmd/${BIN} | ||
|
||
|
@@ -55,4 +57,3 @@ LABEL maintainer="Nolan Brubaker <[email protected]>" | |
COPY --from=builder /output / | ||
|
||
USER nonroot:nonroot | ||
|
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
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