Link go binary statically
Official docker library images are moving to alpine: https://www.brianchristner.io/docker-is-moving-to-alpine-linux/ There are many good reasons to follow.
Alpine is statically linked and uses musl instead of glibc. The current release builds are not completely statically linked. In theory it should be really easy; replace
go build
with
CGO_ENABLED=0 go build
0
votes

-
Paul commented
CGO_ENABLED=0 make build-server
seems to produce a working statically linked binary.