Skip to content

Instantly share code, notes, and snippets.

@mrrooijen
Created February 17, 2016 23:23
Show Gist options
  • Select an option

  • Save mrrooijen/183086c4d56483002803 to your computer and use it in GitHub Desktop.

Select an option

Save mrrooijen/183086c4d56483002803 to your computer and use it in GitHub Desktop.
Example (minimalistic) Elixir Dockerfile (65mb image size).
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