Public | Automated Build

Last pushed: 3 years ago
Short Description
Minimal (4MB) Golang based hello world app for ONUG tutorial
Full Description


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 .
Docker Pull Command
Source Repository