Ignore build data with docker-compose
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -21,6 +21,8 @@ ENV PATH="/root/.cargo/bin:$PATH"
|
|||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
||||||
RUN mix local.hex --force
|
RUN mix local.hex --force
|
||||||
|
RUN mix local.rebar --force
|
||||||
|
|
||||||
CMD mix run --no-halt
|
CMD mix run --no-halt
|
||||||
|
|||||||
@@ -5,5 +5,7 @@ services:
|
|||||||
env_file: docker.env
|
env_file: docker.env
|
||||||
volumes:
|
volumes:
|
||||||
- ".:/app"
|
- ".:/app"
|
||||||
|
# ignore build data
|
||||||
|
- "/app/_build"
|
||||||
working_dir: "/app"
|
working_dir: "/app"
|
||||||
restart: always
|
restart: always
|
||||||
|
|||||||
Reference in New Issue
Block a user