A Docker image for compiling Go to any supported combination of platform and architecture.
449
A Docker image for compiling Go to any supported combination of platform and architecture.
This example compiles Go for Apple Silicon:
docker run --rm -v ${PWD}/.cache:/tmp -v ${PWD}/data:/data -e GOARCH=arm64 -e GOOS=darwin didstopia/go-compiler:latest
Note that the mountable /data directory will contain all the compiled/bootstrapped files.
See compile.sh for more information.
These instructions are specific to compiling for Apple Silicon running macOS Big Sur.
/data folder (see codesign.sh for more details/example usage)/data to /opt/go on your Apple Silicon machine/opt/go to your PATH environment variableNote that this project was created when official support Go for Apple Silicon wasn't released yet.
See LICENSE.
docker pull didstopia/go-compiler:latest