diff --git a/7.2/Dockerfile b/7.2/Dockerfile index ad5bf6e..ee4eabc 100644 --- a/7.2/Dockerfile +++ b/7.2/Dockerfile @@ -1,7 +1,6 @@ FROM php:7.2-rc-zts LABEL maintainer "Tony Blyler " -# FIXME get xdebug working for PHP 7.2 (not officially supported yet) # pecl install xdebug RUN apt-get update && \ apt-get install -y \ @@ -17,9 +16,17 @@ RUN apt-get update && \ make install && \ cd - && \ rm -Rf /tmp/pthreads && \ + # xdebug install since pecl doesn't like php 7.2 yet for xdebug + git clone --depth=1 https://github.com/xdebug/xdebug -b master /tmp/xdebug && \ + cd /tmp/xdebug && \ + phpize && \ + ./configure && \ + make && \ + make install && \ + cd - && \ + rm -Rf /tmp/xdebug && \ docker-php-ext-install pcntl sockets && \ - docker-php-ext-enable pthreads - # docker-php-ext-enable xdebug + docker-php-ext-enable pthreads xdebug ENTRYPOINT ["docker-php-entrypoint"] CMD ["php", "-a"]