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
!
Hey there! I'm on a mission to produce an empty Phoenix project (sans-Ecto) with a docker image of a reasonable size using a flake.
So far I've managed to get to the point where esbuild and tailwind are downloaded and the whole thing produces a docker image that can serve the app and its assets etc. However, the resulting image currently includes 140mb of wx-2.2.2 inside the erlang distribution in the image's nix store. I've attempted to use your examples to override the vanilla nixpkgs erlang and to use the beam_minimal version, but this doesn't seem to take effect.
Can you point me in the right direction? Perhaps I've missed an override in the flake.nix or maybe the
wxSupport = false
stuff stopped working? I've tried pointing nixpkgs in the flake to master and saw no difference.