Created
May 29, 2016 14:00
-
-
Save sergio1990/56a212c866fdf472a7ab40ed0fccdc6c to your computer and use it in GitHub Desktop.
Elixir in Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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