Re-order Dockerfile steps

This commit is contained in:
Oliver Davies 2021-04-21 13:42:27 +01:00
parent 09c9e52db2
commit 64df467527

View file

@ -15,12 +15,8 @@ RUN apt update -yqq && apt install -yqq \
FROM base AS dev
WORKDIR /app
ARG xdebug_version=2.9.0
ENV PATH="./bin:./vendor/bin:$PATH"
RUN apt update -yqq \
&& apt install -yqq \
pv \
@ -30,6 +26,9 @@ RUN apt update -yqq \
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
WORKDIR /app
ENV PATH="/app/bin:$PATH"
COPY composer.json composer.lock /app/
COPY assets /app/assets
COPY tools/patches /app/tools/patches