I did a multistage Docker image today in which you compile a release first, and then copy the binaries into the final image. In development, this application only needs
git, there are no other system dependencies, and production does not need any as far as the application is concerned.
The final image is based on the same official Ubuntu image as the one used in the build Hex image for Elixir.
I believed releases were self-contained, but looks like it is missing something:
/app/erts-10.7.2/bin/beam.smp: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
I could try to install a package and repeat until the application starts, but would like to know what I am doing and looks to me like an ERTS system dependency is missing (perhaps for the console?).
Are those runtime dependencies documented somewhere?