问题
So:
The official Go build container is based on Alpine.
Alpine uses musl as libc instead of glibc.
I need to build a Go executable in a container that can be run on Ubuntu, which uses glibc.
How do I either
- Make the official GoLang build container use glibc or
- Build my GoLang project on an Ubuntu based container
I can't use the Disable CGO solution, as my Go code is a FUSE driver, which requires CGO
来源:https://stackoverflow.com/questions/54524785/how-to-build-a-go-executable-that-doesnt-link-to-musl-libc