Skip to content

Golang in Docker with Cross Compilation Toolchains

License

Notifications You must be signed in to change notification settings

mrmoneyc/golang-xc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Golang with Cross Compilation Toolchains

Usage

$ docker run -it --rm -v $PWD:/go/src/my_project mrmoneyc/golang-xc "go build -v /go/src/my_project/main.go"
$ docker run -it --rm -v $PWD:/go/src/my_project -e PROJECT_SRC=my_project mrmoneyc/golang-xc "go build -v"
$ docker run -it --rm -v $PWD:/go/src/my_project -e CC=arm-linux-gnueabi-gcc -e CGO_ENABLED=1 -e GOOS=linux -e GOARCH=arm mrmoneyc/golang-xc "go build -v /go/src/my_project/main.go"

About

Golang in Docker with Cross Compilation Toolchains

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages