Extract xdebug_version argument

This commit is contained in:
Oliver Davies 2021-04-21 13:36:43 +01:00
parent c712da3079
commit c9de9c1d54

View file

@ -17,13 +17,15 @@ 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 \
vim \
&& pecl install xdebug-2.9.0 \
&& pecl install xdebug-${xdebug_version} \
&& docker-php-ext-enable xdebug
COPY --from=composer:1 /usr/bin/composer /usr/bin/composer