HUB
Sign inSign up

jasperla/docker-go-cross

By jasperla

•Updated about 11 years ago

Cross build environment for Go

Image
0

1.3K

jasperla/docker-go-cross repository overview

⁠docker-go-cross

Simple build container for cross-compiling Go binaries, available on the hub⁠.

⁠Howto

docker run -ti --rm -e APPNAME=myapp -e GOLANG_TARGET_PLATFORM="openbsd/amd64" -v "$PWD:/go/src/app" jasperla/go-cross

This will produce a myapp-openbsd-amd64 binary in $PWD. GOLANG_TARGET_PLATFORM can be set to any platform supported by Go.

Tag summary
Recent tags
Content type
Image
Digest
sha256:94d5f01e0…
Size
269.3 MB
Last updated
about 11 years ago
docker pull jasperla/docker-go-cross:latest