server: Fix /etc/hosts DNS resolution
Created by: tsenart
This commit makes our server image binaries be built with the netgo
network stack. Together with an added /etc/nsswitch.conf
, this fixes /etc/host based DNS resolution in alpine images, which we use.
References:
- https://miek.nl/2015/june/06/go-and-alpine-linux/
- https://giedrius.blog/2018/11/22/etc-nsswitch-conf-and-etc-hosts-woes-with-the-alpine-and-others-docker-image-and-golang/
Fixes #3526