Skip to content

Commit

Permalink
Merge pull request vmware-tanzu#452 from seanpang-vmware/CPcgo
Browse files Browse the repository at this point in the history
Disable cgo to solve glibc dep issue
  • Loading branch information
seanpang-vmware authored Dec 19, 2023
2 parents 04ffc51 + 8024afa commit 77d4890
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build/image/photon/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 77d4890

Please sign in to comment.