Docker image with Erlang, Elixir, and NodeJS on CentOS for cross-building Elixir/Phoenix apps as OTP releases.
Uses CentOS official base image and official binary
builds of Erlang, Elixir, and NodeJS.
7.6(x86-64) - same as RHEL 7.6
Warning: Do not use this image to deploy the app as the size is quite large at
For an example build file that cross-builds a Phoenix app, refer to phoenix/build-release.sh file.
This file should be placed at the root of the Elixir/Phoenix project and:
# Run the build script inside a container running this image # Note: On Windows replace $(pwd) with the actual path docker run -v $(pwd):/home --rm -it akalan/elixir-centos /home/build-release.sh # Run the generated release inside the same container docker run -v $(pwd):/home --rm -it akalan/elixir-centos /home/_build/prod/rel/appname/bin/appname
The release is tarred and zipped to