Add awareness of mix deps to docker stuff

* Dockerfile now runs mix deps.get before running mix run
* Ignore /app/deps in docker-compose.yml so filesystems are not shared

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-08-18 17:30:21 -07:00
parent ba877e5420
commit 052bdcaabc
2 changed files with 2 additions and 1 deletions

View File

@@ -25,4 +25,4 @@ WORKDIR /app
RUN mix local.hex --force RUN mix local.hex --force
RUN mix local.rebar --force RUN mix local.rebar --force
CMD mix run --no-halt CMD mix deps.get && mix run --no-halt

View File

@@ -7,5 +7,6 @@ services:
- ".:/app" - ".:/app"
# ignore build data # ignore build data
- "/app/_build" - "/app/_build"
- "/app/deps"
working_dir: "/app" working_dir: "/app"
restart: always restart: always