Fix the Composer version

Even though Composer v2 was being pulled from the Composer Docker image,
Composer v1 was still being used.

Because I've added the `/app/bin` path to `$PATH`, a version in
`/app/bin/composer` was being used. The simplest way that I can fix
this is re-ordering the variable so that the path is added after the
originals and the Composer version in `/usr/bin/composer` is used.
This commit is contained in:
Oliver Davies 2021-04-21 21:02:25 +01:00
parent ad316f2552
commit 5afcb964dd

View file

@ -27,7 +27,7 @@ RUN apt update -yqq \
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
WORKDIR /app
ENV PATH="/app/bin:$PATH"
ENV PATH="$PATH:/app/bin"
COPY composer.json composer.lock /app/
COPY assets /app/assets