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:
@@ -25,4 +25,4 @@ WORKDIR /app
|
||||
RUN mix local.hex --force
|
||||
RUN mix local.rebar --force
|
||||
|
||||
CMD mix run --no-halt
|
||||
CMD mix deps.get && mix run --no-halt
|
||||
|
||||
@@ -7,5 +7,6 @@ services:
|
||||
- ".:/app"
|
||||
# ignore build data
|
||||
- "/app/_build"
|
||||
- "/app/deps"
|
||||
working_dir: "/app"
|
||||
restart: always
|
||||
|
||||
Reference in New Issue
Block a user