HUB
Sign inSign up
hello_onug logo

cpswan/hello_onug

By cpswan

•Updated about 11 years ago

Minimal (4MB) Golang based hello world app for ONUG tutorial

Image
0

1.3K

cpswan/hello_onug repository overview

##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 .
Tag summary
Recent tags
Content type
Image
Digest
sha256:e5d2da2e0…
Size
1.2 MB
Last updated
about 11 years ago
docker pull cpswan/hello_onug:latest