Skip to content

Commit 48c2521

Browse files
committed
konflux changes
1 parent 718b398 commit 48c2521

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile.konflux

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
FROM registry.access.redhat.com/ubi9/go-toolset:1.23@sha256:2a88121395084eaa575e5758b903fffb43dbf9d9586b2878e51678f63235b587 AS builder
22

3+
ARG TARGETOS
4+
ARG TARGETARCH
5+
36
WORKDIR /workspace
47

58
# Copy the Go Modules manifests
@@ -21,7 +24,7 @@ RUN git config --global --add safe.directory /workspace
2124
# Build
2225
USER 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

2629
FROM registry.redhat.io/ubi9/ubi-minimal@sha256:f172b3082a3d1bbe789a1057f03883c1113243564f01cd3020e27548b911d3f8
2730
WORKDIR /

0 commit comments

Comments
 (0)