-
download & install golang for local compile, or use
brew
to make easier:brew install go
-
build golang app:
env GOOS=linux GOARCH=amd64 go build -v -o ./app/hello ./src/hello.go
-
execute
docker-compose up -d
download & install golang for local compile, or use brew
to make easier:
brew install go
build golang app:
env GOOS=linux GOARCH=amd64 go build -v -o ./app/hello ./src/hello.go
execute docker-compose up -d