title: The command '/bin/sh -c go build -o image_srv .' returned a non-zero code: 2
body: <p>I am trying to build a docker file using docker-compose. Part of the build is related to go language. When I build the code I get the following error. What could be the issue? How do I fix this error ? Could you please advise? I am new to go language</p>
  <pre><code> ---&gt; Running in 68f94f330d0b
  Removing intermediate container 68f94f330d0b
   ---&gt; 7a9ca17f7bd7
  Step 15/16 : RUN go build -o image_srv .
   ---&gt; Running in 38fa96ef75d6
  # golang.org/x/sys/unix
  /go/src/golang.org/x/sys/unix/syscall.go:83:16: undefined: unsafe.Slice
  /go/src/golang.org/x/sys/unix/syscall_unix.go:118:7: undefined: unsafe.Slice
  /go/src/golang.org/x/sys/unix/sysvshm_unix.go:33:7: undefined: unsafe.Slice
  The command '/bin/sh -c go build -o image_srv .' returned a non-zero code: 2
  </code></pre>