File tree Expand file tree Collapse file tree 4 files changed +16
-17
lines changed Expand file tree Collapse file tree 4 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,12 @@ RUN echo "extension=apcu.so" >> /usr/local/etc/php/conf.d/apcu.ini
60
60
RUN yes '' | pecl install -f APCu-4.0.10
61
61
62
62
# xdebug
63
- RUN yes '' | pecl install -f xdebug
64
- RUN echo "zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so \n \
65
- xdebug.remote_enable=1 \n \
66
- xdebug.remote_handler=dbgp \n \
67
- xdebug.remote_autostart=0 \n \
68
- xdebug.remote_connect_back=0 \n \
69
- xdebug.remote_log=\" /var/log/xdebug.log\" " >> /usr/local/etc/php/conf.d/xdebug.ini
63
+ RUN echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
64
+ && echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
65
+ && echo "xdebug.remote_handler=dbgp" >> /usr/local/etc/php/conf.d/xdebug.ini \
66
+ && echo "xdebug.remote_connect_back=1" >> /usr/local/etc/php/conf.d/xdebug.ini \
67
+ && echo "xdebug.remote_autostart=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
68
+ && echo "xdebug.remote_port=9004" >> /usr/local/etc/php/conf.d/xdebug.ini
70
69
71
70
RUN echo ";;;;;;;;;;;;;;;;;;; ; Module Settings ; ;;;;;;;;;;;;;;;;;;; \n \
72
71
[Date] \n \
@@ -110,4 +109,4 @@ WORKDIR /var/www/html
110
109
EXPOSE 9004
111
110
EXPOSE 9000
112
111
113
- ENTRYPOINT ["/usr/local/bin/phpfpm-foreground" ]
112
+ ENTRYPOINT ["/usr/local/bin/phpfpm-foreground" ]
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- exec php-fpm
4
+ exec php-fpm
Original file line number Diff line number Diff line change @@ -61,12 +61,12 @@ RUN yes '' | pecl install -f APCu-4.0.10
61
61
62
62
# xdebug
63
63
RUN yes '' | pecl install -f xdebug
64
- RUN echo "zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20121212/ xdebug.so \n \
65
- xdebug.remote_enable=1 \n \
66
- xdebug.remote_handler=dbgp \n \
67
- xdebug.remote_autostart=0 \n \
68
- xdebug.remote_connect_back=0 \n \
69
- xdebug.remote_log= \" /var/log/ xdebug.log \" " >> /usr/local/etc/php/conf.d/xdebug.ini
64
+ RUN echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
65
+ && echo " xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
66
+ && echo " xdebug.remote_handler=dbgp" >> /usr/local/etc/php/conf.d/xdebug.ini \
67
+ && echo " xdebug.remote_connect_back=1" >> /usr/local/etc/php/conf.d/xdebug.ini \
68
+ && echo " xdebug.remote_autostart=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
69
+ && echo " xdebug.remote_port=9004 " >> /usr/local/etc/php/conf.d/xdebug.ini
70
70
71
71
RUN echo ";;;;;;;;;;;;;;;;;;; ; Module Settings ; ;;;;;;;;;;;;;;;;;;; \n \
72
72
[Date] \n \
@@ -110,4 +110,4 @@ WORKDIR /var/www/html
110
110
EXPOSE 9004
111
111
EXPOSE 9000
112
112
113
- ENTRYPOINT ["/usr/local/bin/phpfpm-foreground" ]
113
+ ENTRYPOINT ["/usr/local/bin/phpfpm-foreground" ]
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- exec php-fpm
4
+ exec php-fpm
You can’t perform that action at this time.
0 commit comments