Alpine based docker image for golang version > 1.5.
Each version can be taken from my docker hub, eg. docker pull metal3d/go:1.6
As soon as I can, the "latest" version will be mapped to the latest go version.
So, docker pull metal3d/go
will pull "latest" version of go (1.6 at this time).
Images provides build-base (gcc, g++, libs...) and tools to "get" packages (git, bzr, mercurial, curl...)
The image uses that directories:
/go
is the GOPATH/usr/lib/go
is GOROOT$PATH
providesGOPATH/bin
and$GOROOT/bin
ENTRYPOINT is "go", so you can call go commands directly:
$ docker run --rm metal3d/go version
go version go1.6 linux/amd64
Because I wanted a smaller image, at first. And because there were no docker 1.6 image when I did my build.