2 ms·
> 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 puttin
by 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)