Skip to content

Commit 5e69e2c

Browse files
author
Stanislav Shupilkin
committed
Install xdebug-beta for php with version 7.3
1 parent fa36055 commit 5e69e2c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,18 @@ ARG COMPOSER_VERSION=1.8
44
FROM composer:${COMPOSER_VERSION}
55
FROM php:${PHP_VERSION}-cli
66

7+
RUN set -eux; \
8+
if [ $(php -r "echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;") = "7.3" ]; \
9+
then \
10+
pecl install xdebug-beta; \
11+
else \
12+
pecl install xdebug; \
13+
fi && \
14+
docker-php-ext-enable xdebug
15+
716
RUN apt-get update && \
817
apt-get install -y git zip unzip && \
9-
pecl install mongodb && docker-php-ext-enable mongodb && \
10-
pecl install xdebug && docker-php-ext-enable xdebug
18+
pecl install mongodb && docker-php-ext-enable mongodb
1119

1220
COPY --from=0 /usr/bin/composer /usr/local/bin/composer
1321

0 commit comments

Comments
 (0)