build script for dev php containers

This commit is contained in:
2018-04-07 21:19:41 -04:00
parent dd82b0037d
commit 5ef4e41d85
8 changed files with 628 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
# Create a base Ubuntu image to build upon
FROM xaicorp/php:7.1
MAINTAINER Richard Morgan <r_morgan@sympatico.ca>
RUN apt-get update && apt-get install -y \
php-xdebug \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& echo "xdebug.remote_enable=on" >> /etc/php/7.1/mods-available/xdebug.ini \
&& echo "xdebug.remote_autostart=on" >> /etc/php/7.1/mods-available/xdebug.ini \
&& echo "xdebug.remote_port = 9001" >> /etc/php/7.1/mods-available/xdebug.ini \
&& echo "xdebug.max_nesting_level=300" >> /etc/php/7.1/mods-available/xdebug.ini \
&& echo "xdebug.remote_connect_back=1" >> /etc/php/7.1/mods-available/xdebug.ini \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*