Skip to content

Instantly share code, notes, and snippets.

@sergio1990
Created May 29, 2016 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sergio1990/56a212c866fdf472a7ab40ed0fccdc6c to your computer and use it in GitHub Desktop.
Save sergio1990/56a212c866fdf472a7ab40ed0fccdc6c to your computer and use it in GitHub Desktop.
Elixir in Docker
FROM elixir:1.2.3
MAINTAINER Sergey Gernyak <sergeg1990@gmail.com>
ENV MIX_ENV=prod
RUN apt-get update && apt-get install -y build-essential git-core
RUN mkdir -p /app
WORKDIR /app
COPY . ./
RUN mix local.hex --force
RUN mix local.rebar --force
RUN mix deps.get && mix deps.compile
RUN mix compile
RUN mix release
EXPOSE 8183
CMD ["rel/my_app/bin/my_app", "console"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment