diff --git a/Dockerfile.dapper b/Dockerfile.dapper index 6e543d34..2920c6d2 100644 --- a/Dockerfile.dapper +++ b/Dockerfile.dapper @@ -7,7 +7,7 @@ RUN zypper -n update && \ zypper -n install bash git binutils glibc-devel-static gcc vim less file tar gzip curl sed wget ca-certificates ENV GOLANG_ARCH_amd64=amd64 GOLANG_ARCH_arm=armv6l GOLANG_ARCH_arm64=arm64 GOLANG_ARCH=GOLANG_ARCH_${ARCH} \ - GOPATH=/go PATH=/go/bin:/usr/local/go/bin:${PATH} SHELL=/bin/bash + GOPATH=/go CGO_ENABLED=0 PATH=/go/bin:/usr/local/go/bin:${PATH} SHELL=/bin/bash RUN curl -sLf https://go.dev/dl/go1.21.10.linux-${ARCH}.tar.gz | tar -xzf - -C /usr/local/ # workaround for https://bugzilla.suse.com/show_bug.cgi?id=1183043 RUN if [ "${ARCH}" == "arm64" ]; then \ diff --git a/Makefile b/Makefile index a3073509..965f5498 100644 --- a/Makefile +++ b/Makefile @@ -75,7 +75,7 @@ $(SETUP_ENVTEST): .PHONY: operator operator: - go build -o bin/aks-operator main.go + CGO_ENABLED=0 go build -o bin/aks-operator main.go .PHONY: generate-go generate-go: $(MOCKGEN)