anchor.diff:  #
   # https://github.com/ibbd/dockerfile-php-fpm
   #
  +# 下载相关资源：./download.sh
   # sudo docker build -t ibbd/php ./
   #
   
  
positive.code:     && docker-php-ext-install gd \
      && docker-php-ext-install iconv mcrypt pdo tokenizer mbstring
  
  # pecl install php modules
  RUN  mkdir /home/php
  COPY ext/redis.tgz /home/php/redis.tgz 
  COPY ext/mongo.tgz /home/php/mongo.tgz 
  COPY ext/msgpack.tgz /home/php/msgpack.tgz 
  
  RUN pecl install /home/php/redis.tgz && echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini \
      && pecl install /home/php/msgpack.tgz && echo "extension=msgpack.so" > /usr/local/etc/php/conf.d/msgpack.ini \
      && pecl install /home/php/mongo.tgz && echo "extension=mongo.so" > /usr/local/etc/php/conf.d/mongo.ini \
      && rm -rf /home/php
  
  # PHP config
  ADD conf/php.ini        /usr/local/etc/php/php.ini
  ADD conf/php-fpm.conf   /usr/local/etc/php-fpm.conf
  
  # composer 
  #RUN curl -sS https://getcomposer.org/installer | php \
  
negative.code:         libfreetype6-dev \
          libjpeg62-turbo-dev \
          libpng12-dev \
          libssl-dev \
      && rm -r /var/lib/apt/lists/*
  
  # install php modules
  