Hacker News new | ask | show | jobs
by dr01d 2323 days ago
I would recommend multistage build but with distroless as final. https://github.com/GoogleContainerTools/distroless
1 comments

This seems like the real answer to this problem. I really like Nix conceptually, but the problem it's being used to solve in this case is already solved by Docker, and using a multistage build with a Distroless stage relies on fewer dependencies, fewer tools, and many fewer lines of config.