Add xdebug to 7.2
This commit is contained in:
parent
25e017e0c4
commit
0e223bc5a2
1 changed files with 10 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
FROM php:7.2-rc-zts
|
||||
LABEL maintainer "Tony Blyler <me@tonyblyler.com>"
|
||||
|
||||
# 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"]
|
||||
|
|
Loading…
Reference in a new issue