Build dumpcap static binary on Linux
On Linux, is it possible to only build the dumpcap
binary and then only with required libraries linked in statically?
My rationale is that I want to deploy dumpcap
in a (Docker) container, and with as few unnecessary stuff as possible. I've used Alpine base images, but especially since Alpine:3.10 has upgraded to Wireshark 3.0.x I notice a lot of unnecessary dependencies getting installed alongside dumpcap. I don't need Lua or Python when running dumpcap
. In consequence, I would like to build a statically linked dumpcap
which I can then install in the final deployment image.
Any instructions as how to configure the sources correctly and only build the component I'm interested in, instead of building everything?