Created
February 17, 2016 23:23
-
-
Save mrrooijen/183086c4d56483002803 to your computer and use it in GitHub Desktop.
Example (minimalistic) Elixir Dockerfile (65mb image size).
This file contains hidden or 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 msaraiva/elixir-dev:1.2.2 | |
| ENV MIX_ENV=prod | |
| ENV PORT=8080 | |
| RUN mkdir /app | |
| WORKDIR /app | |
| ADD config config | |
| ADD lib lib | |
| ADD mix.exs . | |
| ADD mix.lock . | |
| RUN mix deps.get | |
| RUN mix compile | |
| CMD ["mix", "run", "--no-halt"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment