docker run -it --rm \
-v "$PWD":/go/src/myrepo/mypackage -w /go/src/myrepo/mypackage \
-e GOOS=linux -e GOARCH=arm -e CGO_ENABLED=1 \
-e CC=arm-linux-gnueabihf-gcc anakros/goarm \
go build -o binary-armhf-linux
# or in one line
docker run -it --rm -v "$PWD":/go/src/myrepo/mypackage -w /go/src/myrepo/mypackage -e GOOS=linux -e GOARCH=arm -e CGO_ENABLED=1 -e CC=arm-linux-gnueabihf-gcc anakros/goarm go build -o binary-armhf-linux
-
Notifications
You must be signed in to change notification settings - Fork 2
Docker image for cross-compiling Go code with enabled CGO for ARM architecture
AlexKMDev/go-docker-arm-toolchain
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Docker image for cross-compiling Go code with enabled CGO for ARM architecture
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published