79426497

Date: 2025-02-10 08:45:30
Score: 0.5
Natty:
Report link

Came across this error while changing docker image from ubuntu to alpine. Explicit CGO disable during build helped.

For manual launch:

CGO_ENABLED=0 go build .

My case with Dockerfile:

FROM golang:1.22

# ...

ENV CGO_ENABLED=0

# ...

RUN go build 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: trckster