PHP 7.4 安装 xdebug

ARG PHP_VERSION=7.4
FROM registry.gitlab.com/jitesoft/dockerfiles/php/runtime/fpm:${PHP_VERSION}

RUN sed -i 's/127.0.0.1:9000/0.0.0.0:9000/g' /usr/local/etc/php-fpm.d/www.conf
RUN echo 'https://mirrors.aliyun.com/alpine/v3.16/main' > /etc/apk/repositories
RUN echo 'https://mirrors.aliyun.com/alpine/v3.16/main' >>/etc/apk/repositories
RUN apk add nginx

# DEBUG
RUN apk add g++ autoconf make linux-headers
RUN pecl install xdebug-3.1.6