A minimal Docker container with a staticly linked Go binary inside a
FROM scratch container. Based on the excellent work by Adriaan de Jonge with his efforts to Create The Smallest Possible Docker Container.
Compiling static binaries in Go 1.4 has changed a little so I needed to add the
-installsuffix flag to the build line:
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-s' -installsuffix .