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
!
An update: I ended up customising the base erlang derivation that elixir depended upon:
Depending on use case you might still want those apps. Axing the docs makes a massive difference to closure size.