Skip to content

Commit eb42450

Browse files
authored
Build platform independent binary based on the target platform (#1549)
1 parent bc63cfd commit eb42450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfiles/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ COPY main.go main.go
3838
COPY pkg/ pkg/
3939

4040
# Build
41-
RUN CGO_ENABLED=${CGO_ENABLED} GOOS=linux GOARCH=amd64 go build -a -o manager main.go
41+
RUN CGO_ENABLED=${CGO_ENABLED} GOOS=linux GOARCH=${TARGETARCH} go build -a -o manager main.go
4242

4343
################################################################################
4444
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest

0 commit comments

Comments
 (0)