summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to 'docker')
-rw-r--r--docker/php/Dockerfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile
index 8971d1f..c1fef3d 100644
--- a/docker/php/Dockerfile
+++ b/docker/php/Dockerfile
@@ -2,7 +2,12 @@ ARG PHP_VERSION
ARG LIBXML_VERSION
FROM andreskrey/php-${PHP_VERSION}:libxml-${LIBXML_VERSION}
-RUN pecl install xdebug && docker-php-ext-enable xdebug
+RUN apt-get update
+
+# Check if there's a pinned version of Xdebug for compatibility reasons
+ARG XDEBUG_VERSION
+RUN pecl install xdebug$(if [ ! ${XDEBUG_VERSION} = '' ]; then echo -${XDEBUG_VERSION} ; fi) && docker-php-ext-enable xdebug
+
# Required by coveralls
RUN apt-get install git -y