Update XDebug configuration
This commit is contained in:
parent
8379dd69a0
commit
9db267c427
|
|
@ -10,9 +10,9 @@ RUN DEBIAN_FRONTEND=noninteractive \
|
||||||
zip \
|
zip \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install Xdebug
|
# Xdebug
|
||||||
RUN yes | pecl install xdebug \
|
RUN pecl install xdebug \
|
||||||
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini
|
&& docker-php-ext-enable xdebug
|
||||||
|
|
||||||
# Install Composer.
|
# Install Composer.
|
||||||
RUN curl -sS https://getcomposer.org/installer | php -- \
|
RUN curl -sS https://getcomposer.org/installer | php -- \
|
||||||
|
|
@ -27,6 +27,9 @@ RUN mkdir /usr/local/src/wellrested && \
|
||||||
chown -R www-data:www-data /usr/local/src/wellrested && \
|
chown -R www-data:www-data /usr/local/src/wellrested && \
|
||||||
chown -R www-data:www-data /var/www
|
chown -R www-data:www-data /var/www
|
||||||
|
|
||||||
|
# Copy XDebug config file
|
||||||
|
COPY ./docker/php/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
|
||||||
|
|
||||||
# Copy entrypoint script
|
# Copy entrypoint script
|
||||||
COPY docker/php/entrypoint /usr/local/bin
|
COPY docker/php/entrypoint /usr/local/bin
|
||||||
|
|
||||||
|
|
@ -41,4 +44,4 @@ CMD ["php-fpm"]
|
||||||
|
|
||||||
WORKDIR /usr/local/src/wellrested
|
WORKDIR /usr/local/src/wellrested
|
||||||
|
|
||||||
USER www-data
|
USER www-data
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue