Build ARM7 golang apps with cgo enabled
862
Adds CGO ARM7 support to the golang:1-stretch container.
Example use on a go mod enabled project:
go mod vendor && docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp goarm go build -mod=vendor -v
Notes:
go mod vendor copies the used modules into the ./vendor directory so the docker container can built the binary without having to download dependencies.Content type
Image
Digest
Size
323.5 MB
Last updated
over 7 years ago
docker pull kgolding/goarm-1-stretch