cruise-automation / daytona

A Vault client, but for containers and servers.
Apache License 2.0
310 stars 33 forks source link

Adding linker flags to reduce compiled size by 68-75%, based on platform. #25

Closed robison closed 5 years ago

robison commented 5 years ago

This cuts to built size of the Daytona docker image from ~18.3mb to ~4.9mb, a savings of 73%. Accomplished via use of ldflags (-s -w) passed during the build, and compressing the built artifact with upx.