php7.3 builds
This commit is contained in:
@@ -1,22 +1,13 @@
|
||||
FROM dkregistry.xai-corp.net:5000/xaicorp/php:7.3
|
||||
# Create a base Ubuntu image to build upon
|
||||
FROM xaicorp/php:7.3
|
||||
MAINTAINER Richard Morgan <r_morgan@sympatico.ca>
|
||||
|
||||
WORKDIR /opt/project
|
||||
|
||||
#CMD ["/usr/sbin/php-fpm7.3", "-F"]
|
||||
|
||||
COPY ./docker-php-fpm.conf /usr/local/etc/php-fpm.d/www.conf
|
||||
|
||||
RUN apt-get update && apt-get install -y curl nano sed git zip \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
RUN pecl install redis-5.1.1 \
|
||||
&& pecl install xdebug-2.9.4 \
|
||||
&& docker-php-ext-enable redis xdebug
|
||||
|
||||
RUN echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
|
||||
&& echo "xdebug.remote_autostart=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
|
||||
&& echo "xdebug.remote_port = 9001" >> /usr/local/etc/php/conf.d/xdebug.ini \
|
||||
&& echo "xdebug.max_nesting_level=300" >> /usr/local/etc/php/conf.d/xdebug.ini \
|
||||
&& echo "xdebug.remote_connect_back=1" >> /usr/local/etc/php/conf.d/xdebug.ini \
|
||||
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/*
|
||||
|
||||
Reference in New Issue
Block a user