mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2025-07-23 13:21:43 +02:00
Remove PHP XDebug support
This commit is contained in:
@@ -37,20 +37,6 @@ RUN apk add --no-cache \
|
||||
git \
|
||||
curl
|
||||
|
||||
# Enable php8-xdebug if $PHP_XDEBUG_MODE is not empty
|
||||
ARG PHP_XDEBUG_MODE=off
|
||||
ARG PHP_XDEBUG_CLIENT_PORT=5902
|
||||
ARG PHP_XDEBUG_CLIENT_HOST=host.docker.internal
|
||||
COPY xdebug.ini /etc/php8/conf.d/xdebug.ini.template
|
||||
RUN if [[ "$PHP_XDEBUG_MODE" != "" ]]; then \
|
||||
apk add --no-cache php8-pecl-xdebug; \
|
||||
export PHP_XDEBUG_MODE=$PHP_XDEBUG_MODE; \
|
||||
export PHP_XDEBUG_CLIENT_PORT=$PHP_XDEBUG_CLIENT_PORT; \
|
||||
export PHP_XDEBUG_CLIENT_HOST=$PHP_XDEBUG_CLIENT_HOST; \
|
||||
envsubst < /etc/php8/conf.d/xdebug.ini.template > /etc/php8/conf.d/xdebug.ini; \
|
||||
fi
|
||||
RUN rm -f /etc/php8/conf.d/xdebug.ini.template
|
||||
|
||||
RUN curl -sS https://getcomposer.org/installer | tee composer-setup.php \
|
||||
&& php8 composer-setup.php && rm composer-setup.php* \
|
||||
&& chmod +x composer.phar && mv composer.phar /usr/bin/composer \
|
||||
|
Reference in New Issue
Block a user