File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11FROM registry.access.redhat.com/ubi9/go-toolset:1.23@sha256:2a88121395084eaa575e5758b903fffb43dbf9d9586b2878e51678f63235b587 AS builder
22
3+ ARG TARGETOS
4+ ARG TARGETARCH
5+
36WORKDIR /workspace
47
58# Copy the Go Modules manifests
@@ -21,7 +24,7 @@ RUN git config --global --add safe.directory /workspace
2124# Build
2225USER root
2326
24- RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GOEXPERIMENT=strictfipsruntime go build -tags strictfipsruntime -a -o manager main.go
27+ RUN CGO_ENABLED=1 GOOS=${TARGETOS:- linux} GOARCH=${TARGETARCH} GOEXPERIMENT=strictfipsruntime go build -tags strictfipsruntime -a -o manager main.go
2528
2629FROM registry.redhat.io/ubi9/ubi-minimal@sha256:f172b3082a3d1bbe789a1057f03883c1113243564f01cd3020e27548b911d3f8
2730WORKDIR /
You can’t perform that action at this time.
0 commit comments