File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,11 @@ RUN pecl install redis \
62
62
# Install Composer
63
63
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer
64
64
65
+ # Install XDebug
66
+ RUN cd /tmp && wget http://xdebug.org/files/xdebug-2.5.4.tgz && tar -xvzf xdebug-2.5.4.tgz && cd xdebug-2.5.4 \
67
+ && phpize && ./configure && make && cp modules/xdebug.so /usr/local/lib/php/extensions/no-debug-non-zts-20160303 \
68
+ && rm -rf /tmp/xdebug-2.5.4.* /tmp/xdebug-2.5.4/
69
+
65
70
# Run composer install
66
71
CMD /usr/bin/apache-run
67
72
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ if [[ $XDEBUG_ENABLED == true ]]; then
4
+ echo " zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so" > /usr/local/etc/php/conf.d/xdebug.ini
5
+ echo " xdebug.var_display_max_depth=15" >> /usr/local/etc/php/conf.d/xdebug.ini
6
+ fi
7
+
3
8
usermod -u 1000 www-data \
4
9
&& cd /var/www/html && composer install && rm -rf var/cache/* var/logs/* \
5
10
&& chown -R www-data:www-data /var/www/html/var/cache && chmod 777 /var/www/html/var/cache \
You can’t perform that action at this time.
0 commit comments