build(docker): add /app/vendor/bin to PATH

This commit is contained in:
Oliver Davies 2021-10-05 18:10:54 +01:00
parent ba935d861c
commit 033271519f

View file

@ -1,6 +1,7 @@
FROM opdavies/sculpin-serve AS app FROM opdavies/sculpin-serve AS app
FROM app AS build FROM app AS build
ENV PATH=$PATH:/app/vendor/bin/phpunit
WORKDIR /app WORKDIR /app
COPY composer.* ./ COPY composer.* ./
RUN composer install --no-dev RUN composer install --no-dev