File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,12 @@ RUN echo "extension=apcu.so" >> /usr/local/etc/php/conf.d/apcu.ini
56
56
RUN yes '' | pecl install -f APCu-4.0.10
57
57
58
58
# 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
66
65
67
66
RUN echo ";;;;;;;;;;;;;;;;;;; ; Module Settings ; ;;;;;;;;;;;;;;;;;;; \n \
68
67
[Date] \n \
@@ -100,4 +99,4 @@ WORKDIR /var/www/html
100
99
EXPOSE 9004
101
100
EXPOSE 9000
102
101
103
- ENTRYPOINT ["/usr/local/bin/phpfpm-foreground" ]
102
+ ENTRYPOINT ["/usr/local/bin/phpfpm-foreground" ]
You can’t perform that action at this time.
0 commit comments