3 ms·
What has this got to do with making Docker images smaller?
by secondcoming 5y ago
What has this got to do with making Docker images smaller?
- dwohnitmok 5y agoPresumably parent's point is "making Docker images with Nix makes them very small [smaller even than the tips mentioned in the article]."
- yjftsjthsd-h 5y agoAnd it does so more or less by default, for free, without having to make any special effort. Edit: Any special effort beyond using nix, I should say; that is a significant cost if you're not already paying it.
- chriswarbo 5y ago> What has this got to do with making Docker images smaller? "Docker images" are .tar.gz files containing some binary executable. The article starts by putting an entire Linux distribution into the .tar.gz (Ubuntu, Alpine, etc.), then goes through several ways to try and make the result smaller. Nix does things the other way: the .tar.gz will only contain the specified binary, plus its dependencies. It's minimal by default (although there are still tricks to making things smaller, e.g. taking dependencies from `pkgsMusl` instead of `pkgs`, to avoid glibc)