This is a Docker container to be able to cross compile Golang packages with enabled cgo together with GoReleaser.
- Windows (amd64)
- Linux (amd64, ARM64)
- macOS (amd64) No CGO support
- GoLang: 1.16.3
- GoReleaser: 0.164.0
- Docker: 20.10.6
- MUSL: 2021-03-04 Release
docker run --rm --privileged \
-v $PWD:/go/src/github.com/[project]/[repo] \
-v /var/run/docker.sock:/var/run/docker.sock \
-w /go/src/github.com/[project]/[repo] \
gohornet/goreleaser-cgo-cross-compiler:latest goreleaser --snapshot --rm-dist