I'm currently taking a microservice online course where I deploy small go apps to docker containers. The long and ugly command line to build the binaries is this one:
go build --tags netgo --ldflags '-extldflags "-lm -lstdc++ -static"'
till now I just used go install
to compile my go app.
Can anyone explain this command to me?
from scratch
. I think I'm going to update all of my docker images to these tags and build options. awesome.