Built binaries are not stripped #6649
Labels
good first issue
Good for first-time contributors looking to learn about Calico
help wanted
kind/enhancement
Built binaries are not stripped
Expected Behavior
Built binaries are as small as possible to reduce docker images size.
Current Behavior
As an example, calico-node is not stripped:
calico-node: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, Go BuildID=Zj-dNERc1XZs22xTIG4a/6iGR1YjI3SePsudHbMMA/BM-owAa7TDzFpy2od1aW/84jlD79A8qOMoOkeJqpA, BuildID[sha1]=519824671dc019b4983ac44e98740d4c76d2c9fa, not stripped
This is the same for binaries in kube-controllers, cni and node docker images.
Possible Solution
Use ldflags "-w -s"
The text was updated successfully, but these errors were encountered: