关于golang编译的程序copy到docker基础容器alpine不能运行的问题

The installed Go version was compiled with glibc and on Alpine that is not installed by default. You can compile your Go with muslc, which is the default for Alpine, or do the symlink as above. – sheldonk Aug 5 ’16 at 2:06

编译时应该使用
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o output.exe main.go