gobase - minimal docker image for Go programs
This image is simply the
scratch docker image with root CAs and zoneinfo files copied into the standard locations.
Most go programs should be able to run on this image, unless they use cgo.
Size of the image is ~549kB.
You can also find this pre-built on docker registry.
Building your program
Programs that use the network should be compiled with
netgo build tag and install suffix:
go build -tags netgo -installsuffix netgo