The very basic web app is created in Go
package main import( "fmt" "net/http" "os" ) func hostHandler(w http.Response
In my case en env was not enough: RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64
I had to add as well in the build the tags and ldflags: RUN go build -a -tags netgo -ldflags '-w' -o /go/bin/myService *.go