docker run -v "$GOPATH":/go --rm -v "$PWD":/go/src/myapp -w /go/src/myapp -e CGO_ENABLED=0 -e GOOS="linux" -e GOARCH="amd64" golang:1.15-alpine go build -ldflags "-s -w" -v
Last active
April 15, 2021 11:33
-
-
Save dollarkillerx/000f2a13f0edc982a6c250c725963c82 to your computer and use it in GitHub Desktop.
docker build golang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment