I'm trying to create a pure statically linked binary to run in a minimal Docker container. Prior to Go 1.5, I was building them like this:
go build -a -tags netgo -installsuffix netgo myfile.go
I understand that C has been stripped out of the Go compiler in version 1.5. Is it still necessary to build with -tags
and -installsuffix
?