Skip to content

Instantly share code, notes, and snippets.

@sionide21
Created September 7, 2017 00:24
Show Gist options
  • Save sionide21/5a86fd0e1b019f061fb3e696c6492eb9 to your computer and use it in GitHub Desktop.
Save sionide21/5a86fd0e1b019f061fb3e696c6492eb9 to your computer and use it in GitHub Desktop.
FROM elixir:1.5.1
RUN mkdir /app
WORKDIR /app
EXPOSE 7777
ENV PORT=7777
ENV MIX_ENV=prod
RUN mix local.hex --force && mix local.rebar --force
COPY mix.* ./
RUN mix do deps.get, deps.compile
COPY . ./
CMD ["mix", "run", "--no-halt"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment