At Stritzinger we just released a very simple rebar3 plugin to create docker images out of your Erlang releases. It is called rebar3_docker and you can find it:
- on hex.pm: rebar3_docker | Hex
- and on github.com: GitHub - stritzinger/rebar3_docker: Rebar3 plugin to build docker images
To try it, just create a simple project:
rebar3 new app
cd mylib
cat >> rebar.config <<EOF
{plugins, [rebar3_docker]}.
{relx, [
{release, {mylib, “0.1.0”}, [mylib]},
{include_src, false},
{include_erts, true}
]}.
EOF
rebar3 docker build
docker run --rm -it local/mylib console
We hope it could be useful for others too, and would be happy to receive any feedback !