go-in-5-minutes icon indicating copy to clipboard operation
go-in-5-minutes copied to clipboard

how to cross-compile and build statically linked binaries

Open arschles opened this issue 9 years ago • 3 comments

suggested via slack by @mholt

reference for myself: https://labs.ctl.io/small-docker-images-for-go-apps/ and https://medium.com/iron-io-blog/an-easier-way-to-create-tiny-golang-docker-images-7ba2893b160

arschles avatar Oct 13 '15 00:10 arschles

+1

nmabhinandan avatar Oct 24 '15 08:10 nmabhinandan

Make sure to cover cgo for compiling things like sqlite3.

ghost avatar Nov 23 '15 16:11 ghost

Some suggestions:

Gox makes cross compiling (non cgo apps) a breeze.

Alpine linux makes small linux container images much easier. Apparently the official images are moving in that direction.

danesparza avatar Jun 01 '16 12:06 danesparza