Mini Elixir is a miniature (34M) Docker container that has only what you'll need to run Elixir/Erlang apps. It's based off of Alpine Linux.
Table of Contents
FROM brianhicks/minielixir:latest
MAINTAINER Your Name <[email protected]>
# groundwork
WORKDIR /app
ENV NODE_NAME=yourapp
ENV NODE_COOKIE=yourcookie
ENV PORT=4000
# install dependencies
ADD mix.exs /app/mix.exs
RUN mix deps.get && mix deps.compile
# compile app
ADD . /app
RUN mix compile
CMD elixir --name $NODE_NAME@$HOSTNAME --cookie $NODE_COOKIE -S mix phoenix.server
latest is the only tag at the moment, once Elixir is released into
mainstream Alpine linux, tags will be built for each release.Content type
Image
Digest
sha256:2203c6ab4…
Size
18.1 MB
Last updated
about 11 years ago
docker pull brianhicks/minielixir