Hacker News new | past | comments | ask | show | jobs | submit login

> It works! I checked, and that’s an alternative way to fix this bug – if I just set the CGO_ENABLED=0 environment variable in my build container, then I can build a static binary and I don’t need to switch to the golang:alpine container for my builds. I kind of like that fix better.

With a static binary, you can even start your Dockerfile with `from scratch`. Feels good to have 5kb docker images




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: