Anyone have experience with docker and go on Linux

I am very new to docker and I am receiving this error on step 13 when I build…

[ace-go-monitoring]$ make docker-build docker-compose -f ./docker/docker-compose.yml build app Building app Step 1/23 : FROM golang:1.12.1-stretch as builder

Step 13/23 : RUN GIT_TERMINAL_PROMPT=1 GOARCH=amd64 GOOS=linux CGO_ENABLED=1 go build -v --installsuffix cgo --ldflags="-extldflags -static" -o monitoring —> Running in 3da53d546c25

go: error loading module requirements ERROR: Service ‘app’ failed to build: The command ‘/bin/sh -c GIT_TERMINAL_PROMPT=1 GOARCH=amd64 GOOS=linux CGO_ENABLED=1 go build -v --installsuffix cgo --ldflags="-extldflags -static" -o monitoring’ returned a non-zero code: 1 make: *** [docker-build] Error 1

Hi

You can try and put all the env variables in the “ENV” command:

and then run the go build…