mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-10 13:42:02 +00:00
bazel: statically link dockerized components
and remove libc from docker images when it's not needed.
This commit is contained in:
@@ -10,6 +10,12 @@ load(
|
||||
|
||||
go_binary(
|
||||
name = "kubectl",
|
||||
gc_linkopts = [
|
||||
"-linkmode",
|
||||
"external",
|
||||
"-extldflags",
|
||||
"-static",
|
||||
],
|
||||
library = ":go_default_library",
|
||||
linkstamp = "k8s.io/kubernetes/pkg/version",
|
||||
tags = ["automanaged"],
|
||||
|
Reference in New Issue
Block a user