-
-
Save Papipo/d130f7464f770d569fd62f158c86417b to your computer and use it in GitHub Desktop.
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.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 |
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
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