3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Provide a dev Dockerfile that adds XDebug.

This commit is contained in:
Michael Stenta 2020-04-19 22:09:56 -04:00
parent 9a82f5323b
commit e3d1d381b0

7
docker/dev/Dockerfile Normal file
View file

@ -0,0 +1,7 @@
# Inherit from the farmOS 2.0.x image.
FROM farmos/farmos:2.0.x
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini