Monday, December 20, 2021

Error build Golang with SQlite on Docker

 "Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work."

Add RUN cmd with option in Dockerfile

RUN go build -a -ldflags "-linkmode external -extldflags '-static' -s -w" -o main

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

ALCATEL 6900

write memory copy running certified reload from working no rollback-timeout