From 8024afae31a0104eceeb9a5e73b01e07e584e530 Mon Sep 17 00:00:00 2001 From: ranp Date: Sat, 16 Dec 2023 17:46:16 +0800 Subject: [PATCH] Disable cgo to solve glibc dep issue --- build/image/photon/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build/image/photon/Dockerfile b/build/image/photon/Dockerfile index c2185c3f2..d179c1939 100644 --- a/build/image/photon/Dockerfile +++ b/build/image/photon/Dockerfile @@ -3,9 +3,7 @@ FROM golang:1.21.5 as golang-build WORKDIR /source COPY . /source - -RUN go build -o manager cmd/main.go - +RUN CGO_ENABLED=0 go build -o manager cmd/main.go FROM photon