|
|
|
@ -1,9 +1,10 @@
|
|
|
|
|
FROM php:7-fpm
|
|
|
|
|
FROM php:5.6-fpm
|
|
|
|
|
|
|
|
|
|
RUN cd /tmp/ && \
|
|
|
|
|
curl -O http://pecl.php.net/get/xdebug-2.4.0.tgz && \
|
|
|
|
|
tar zxvf xdebug-2.4.0.tgz && \
|
|
|
|
|
mv xdebug-2.4.0 /usr/src/php/ext/xdebug
|
|
|
|
|
curl -O https://xdebug.org/files/xdebug-2.4.1.tgz && \
|
|
|
|
|
tar zxf xdebug-2.4.1.tgz && \
|
|
|
|
|
mkdir -p /usr/src/php/ext/xdebug && \
|
|
|
|
|
mv xdebug-2.4.1/* /usr/src/php/ext/xdebug/
|
|
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
|
ssmtp \
|
|
|
|
@ -15,7 +16,7 @@ RUN apt-get update && apt-get install -y \
|
|
|
|
|
&& docker-php-ext-install -j$(nproc) mysqli pdo pdo_mysql \
|
|
|
|
|
&& docker-php-ext-install -j$(nproc) xdebug\
|
|
|
|
|
&& apt-get purge -y --auto-remove $buildDeps \
|
|
|
|
|
&& cd /usr/src/php \
|
|
|
|
|
&& cd /usr/src/php/ext/xdebug/ \
|
|
|
|
|
&& make clean \
|
|
|
|
|
&& apt-get clean \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|