Containerized build environment for compiling an Erlang application into a lightweight Docker container. Based on work of https://github.com/CenturyLinkLabs/golang-builder
Create a generate_release.sh
in your root application directory with instructions to make a release, for example:
#!/bin/bash
rebar get-deps clean compile generate
Set up IMAGE_APP_NAME
and IMAGE_TAG_NAME
with your values
docker run --rm -v $(pwd):/opt/erlang_app --privileged -e "IMAGE_APP_NAME=application_name" -e "IMAGE_TAG_NAME=tag" artefactop/erlang-builder