Dockerfile for build centos linux binary with gcc, go
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Go to file
Lunny Xiao da0b1a23ff
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
Add make
8 months ago
.drone.yml Upgrade drone 2 years ago
Dockerfile Add make 8 months ago
README.md Add more hints 8 months ago

README.md

Usage

This assumes that you are using go mod to build.

docker run --rm -v "$PWD":/myrepo -w /myrepo lunny/centos-go:latest go build

With a goproxy env

docker run --rm -v "$PWD":/myrepo -w /myrepo -e GOPROXY=goproxy.io lunny/centos-go:latest go build

With a shared go mod cache in host

docker run --rm -v "$PWD":/myrepo -v ~/go/pkg/mod:/modcache -w /myrepo -e GOMODCACHE=/modcache -e GOPROXY=goproxy.io lunny/centos-go:latest go build