[docker] quieter build
This commit is contained in:
parent
f47c7d7ee8
commit
f3d869f8c3
1 changed files with 2 additions and 2 deletions
|
@ -39,13 +39,13 @@ ENV XDEBUG_MODE=coverage
|
||||||
FROM dev-tools AS build
|
FROM dev-tools AS build
|
||||||
COPY composer.json composer.lock /app/
|
COPY composer.json composer.lock /app/
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN composer install --no-dev
|
RUN composer install --no-dev --no-progress
|
||||||
COPY . /app/
|
COPY . /app/
|
||||||
|
|
||||||
# Tests in their own image.
|
# Tests in their own image.
|
||||||
# Re-run composer install to get dev dependencies
|
# Re-run composer install to get dev dependencies
|
||||||
FROM build AS tests
|
FROM build AS tests
|
||||||
RUN composer install
|
RUN composer install --no-progress
|
||||||
COPY . /app/
|
COPY . /app/
|
||||||
ARG RUN_TESTS=true
|
ARG RUN_TESTS=true
|
||||||
RUN [ $RUN_TESTS = false ] || (\
|
RUN [ $RUN_TESTS = false ] || (\
|
||||||
|
|
Reference in a new issue