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
!
Thanks for the advice! Makes sense about the elimination of erlang. I see that the elimination does happen in the closure, but when dockerising I see the erlang stuff return with a vengeance. I'll dig a bit deeper and report!