Answers for "go docker $GOPATH/go.mod exists but should not The command '/bin/sh -c go mod download go build -o main' returned a non-zero code: 1"

0

go docker $GOPATH/go.mod exists but should not The command '/bin/sh -c go mod download go build -o main' returned a non-zero code: 1

add into your dockerfile

apt install golang -y

work perfect
Posted by: Guest on April-01-2021

Browse Popular Code Answers by Language