Minimal (4MB) Golang based hello world app for ONUG tutorial
1.1K
##Hello_ONUG
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 .
Content type
Image
Digest
sha256:e5d2da2e0…
Size
1.2 MB
Last updated
almost 11 years ago
docker pull cpswan/hello_onug