8000 Merge pull request #3859 from dims/statically-link-cni-plugins · orange-guo/kind@53ff1fb · GitHub
[go: up one dir, main page]

Skip to content

Commit 53ff1fb

Browse files
authored
Merge pull request kubernetes-sigs#3859 from dims/statically-link-cni-plugins
Statically link CNI plugins
2 parents 16e2408 + 28751ec commit 53ff1fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

images/base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ RUN git clone --filter=tree:0 "${CNI_PLUGINS_CLONE_URL}" /cni-plugins \
176176
&& eval "$(gimme "${GO_VERSION}")" \
177177
&& export GOTOOLCHAIN="go${GO_VERSION}" \
178178
&& mkdir ./bin \
179-
&& export GOARCH=$TARGETARCH && export CC=$(target-cc) && export CGO_ENABLED=1 \
179+
&& export GOARCH=$TARGETARCH && export CC=$(target-cc) && export CGO_ENABLED=0 \
180180
&& go build -o ./bin/host-local -mod=vendor ./plugins/ipam/host-local \
181181
&& go build -o ./bin/loopback -mod=vendor ./plugins/main/loopback \
182182
&& go build -o ./bin/ptp -mod=vendor ./plugins/main/ptp \

0 commit comments

Comments
 (0)
0