We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa36055 commit 5e69e2cCopy full SHA for 5e69e2c
Dockerfile
@@ -4,10 +4,18 @@ ARG COMPOSER_VERSION=1.8
4
FROM composer:${COMPOSER_VERSION}
5
FROM php:${PHP_VERSION}-cli
6
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
+
16
RUN apt-get update && \
17
apt-get install -y git zip unzip && \
- pecl install mongodb && docker-php-ext-enable mongodb && \
- pecl install xdebug && docker-php-ext-enable xdebug
18
+ pecl install mongodb && docker-php-ext-enable mongodb
19
20
COPY --from=0 /usr/bin/composer /usr/local/bin/composer
21
0 commit comments