Skip to content

Instantly share code, notes, and snippets.

@Papipo
Created February 18, 2018 12:36
Show Gist options
  • Save Papipo/d130f7464f770d569fd62f158c86417b to your computer and use it in GitHub Desktop.
Save Papipo/d130f7464f770d569fd62f158c86417b to your computer and use it in GitHub Desktop.
FROM elixir:1.6.1
RUN mix local.hex --force
ENV WORKDIR /app
WORKDIR $WORKDIR
COPY mix.exs mix.lock $WORKDIR/
RUN mix deps.get
RUN mix deps.compile
COPY . ./
ENTRYPOINT mix run --no-halt
version: "3"
services:
app:
build:
context: .
ports:
- "4000:4000"
volumes:
- .:/app
command: "mix run --no-halt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment