update php and composer builds

This commit is contained in:
2021-01-02 20:36:35 -05:00
parent 2317dccba2
commit 240a2af2d5
5 changed files with 86 additions and 60 deletions

View File

@@ -2,12 +2,19 @@
FROM xaicorp/php:7.3
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.3/mods-available/xdebug.ini \
# && echo "xdebug.remote_autostart=on" >> /etc/php/7.3/mods-available/xdebug.ini \
# && echo "xdebug.remote_port = 9001" >> /etc/php/7.3/mods-available/xdebug.ini \
# && echo "xdebug.max_nesting_level=300" >> /etc/php/7.3/mods-available/xdebug.ini \
# && echo "xdebug.remote_connect_back=1" >> /etc/php/7.3/mods-available/xdebug.ini \
# && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
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.3/mods-available/xdebug.ini \
&& echo "xdebug.remote_autostart=on" >> /etc/php/7.3/mods-available/xdebug.ini \
&& echo "xdebug.remote_port = 9001" >> /etc/php/7.3/mods-available/xdebug.ini \
&& echo "xdebug.max_nesting_level=300" >> /etc/php/7.3/mods-available/xdebug.ini \
&& echo "xdebug.remote_connect_back=1" >> /etc/php/7.3/mods-available/xdebug.ini \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
git \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN pecl install xdebug-2.8.1 \
&& docker-php-ext-enable xdebug