Skip to content

Instantly share code, notes, and snippets.

@mytrile
Forked from sergio1990/Dockerfile
Created August 4, 2016 08:17
Show Gist options
  • Save mytrile/c2881edd29b0cffdcbaecd273de4fba6 to your computer and use it in GitHub Desktop.
Save mytrile/c2881edd29b0cffdcbaecd273de4fba6 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