Cross build environment for Go
1.3K
Simple build container for cross-compiling Go binaries, available on the hub.
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.
Content type
Image
Digest
sha256:94d5f01e0…
Size
269.3 MB
Last updated
almost 11 years ago
docker pull jasperla/docker-go-cross