File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,18 @@ RUN "date"
19
19
# Type docker-php-ext-install to see available extensions
20
20
RUN docker-php-ext-install pdo pdo_mysql
21
21
22
+
23
+ # Install and config xdebug ( From:https://hub.docker.com/r/inblank/php7-xdebug/~/dockerfile/ )
24
+ RUN pecl install xdebug \
25
+ && docker-php-ext-enable xdebug \
26
+ && echo "error_reporting = E_ALL" > /usr/local/etc/php/php.ini \
27
+ && echo "display_startup_errors = On" >> /usr/local/etc/php/php.ini \
28
+ && echo "display_errors = On" >> /usr/local/etc/php/php.ini \
29
+ && echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
30
+ && echo "xdebug.remote_connect_back=1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
31
+ && echo "xdebug.idekey=\" PHPSTORM\" " >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
32
+ && echo "xdebug.remote_port=9000" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
33
+
22
34
RUN echo 'alias sf="php app/console"' >> ~/.bashrc
23
35
RUN echo 'alias sf3="php bin/console"' >> ~/.bashrc
24
36
You can’t perform that action at this time.
0 commit comments