Dockerfile 620 B

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