Skip to content

Commit d194d72

Browse files
committed
Update Dockerfile
Fix xdebug config to get current version
1 parent 5e9abde commit d194d72

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

php-5.5/Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,12 @@ RUN echo "extension=apcu.so" >> /usr/local/etc/php/conf.d/apcu.ini
5656
RUN yes '' | pecl install -f APCu-4.0.10
5757

5858
# xdebug
59-
RUN yes '' | pecl install -f xdebug
60-
RUN echo "zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so \n\
61-
xdebug.remote_enable=1 \n\
62-
xdebug.remote_handler=dbgp \n\
63-
xdebug.remote_autostart=0 \n\
64-
xdebug.remote_connect_back=0 \n\
65-
xdebug.remote_log=\"/var/log/xdebug.log\"" >> /usr/local/etc/php/conf.d/xdebug.ini
59+
RUN echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
60+
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
61+
&& echo "xdebug.remote_handler=dbgp" >> /usr/local/etc/php/conf.d/xdebug.ini \
62+
&& echo "xdebug.remote_connect_back=1" >> /usr/local/etc/php/conf.d/xdebug.ini \
63+
&& echo "xdebug.remote_autostart=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
64+
&& echo "xdebug.remote_port=9004" >> /usr/local/etc/php/conf.d/xdebug.ini
6665

6766
RUN echo ";;;;;;;;;;;;;;;;;;; ; Module Settings ; ;;;;;;;;;;;;;;;;;;; \n\
6867
[Date] \n\
@@ -100,4 +99,4 @@ WORKDIR /var/www/html
10099
EXPOSE 9004
101100
EXPOSE 9000
102101

103-
ENTRYPOINT ["/usr/local/bin/phpfpm-foreground"]
102+
ENTRYPOINT ["/usr/local/bin/phpfpm-foreground"]

0 commit comments

Comments
 (0)