FROM daocloud.io/library/php:7.1.5-fpm RUN pecl install xdebug-2.7.2 \ && docker-php-ext-enable xdebug COPY xdebug.ini /usr/local/etc/php/conf.d/ # # 更新安装源 # RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories # # 安装基础库 # RUN apk add --no-cache libmcrypt-dev freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev $PHPIZE_DEPS # # 安装PHP扩展 # RUN docker-php-ext-install pdo_mysql gd opcache pcntl bcmath # # 安装PECL扩展 # RUN pecl install xdebug redis \ # && docker-php-ext-enable xdebug \ # && docker-php-ext-enable redis