Skip to content

Commit

Permalink
Dockerfile: disable CGO
Browse files Browse the repository at this point in the history
This reverts commit a107703.

There is no requirement for that (now) but it makes life of builders
on non-x86 platforms easier.

Signed-off-by: Yauheni Kaliuta <[email protected]>
  • Loading branch information
ykaliuta committed Nov 19, 2024
1 parent 77b6db8 commit 0d0c233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ COPY main.go main.go
COPY pkg/ pkg/

# Build
RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go

################################################################################
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
Expand Down

0 comments on commit 0d0c233

Please sign in to comment.