forked from containers/podman
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux: Build amd64 and arm64 podman-remote-static binaries
Looking at https://github.com/containers/podman/releases/tag/v4.3.1, it's not explicit which arch the podman-remote-static binary is built for, so this commit adds an -$(goarch) suffix to it. It builds both arm64 and amd64 binaries as I need both for crc. Signed-off-by: Christophe Fergeau <[email protected]>
- Loading branch information
Showing
4 changed files
with
14 additions
and
10 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
FROM registry.access.redhat.com/ubi8/go-toolset:latest AS builder | ||
WORKDIR /opt/app-root/src | ||
COPY . . | ||
RUN make podman-remote-static | ||
RUN make podman-remote-static_amd64 | ||
RUN GOOS=windows make podman-remote | ||
RUN GOOS=darwin make podman-remote | ||
|
||
FROM scratch | ||
COPY --from=builder /opt/app-root/src/bin . | ||
ENTRYPOINT ["/podman-remote-static"] | ||
ENTRYPOINT ["/podman-remote-static_amd64"] |
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