This is based on nixpkgs
commit 862277ac9d34273cd953f42061e23d488d6b7e8b.
The resulting image is less than 25 MiB compressed.
The actual crosslink
closure got shrunk from ~180 MiB to ~60 MiB just by using beam_minimal
rather than beam
as the base set in beams.nix
!
I usually do not care for the size of individual folders in the store, but closure sizes only.
Still the mentioned differences make me wonder where and why that is happening and whether this might be a regression.
I am currently trying to check the closure size of the
beam_minimal.interpreters.erlang_25
, but have to build that one first, which can take up to an hour on my weak machine.If I can confirm this variancy I will definitely take a closer look into what is going on. The commit linked in the
README.md
definitely gave me the mentioned closure size of ~60MiB which not only included erlang, but also elixir and my deployment subject (at that point a freshly generated phoenix application).