Skip to content

Instantly share code, notes, and snippets.

@sergio1990
Created May 29, 2016 14:00
Show Gist options
  • 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 <[email protected]>
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