anchor.diff:    libmemcached-dev \
     libmcrypt-dev \
     libxml2-dev \
  +  pcre-dev \
     zlib-dev \
     autoconf \
     cyrus-sasl-dev \
     libgsasl-dev \
  +  oniguruma-dev \
  +  libressl \
  +  libressl-dev \
     supervisor \
  -  oniguruma-dev \
     procps
   
  -RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl
  +RUN pecl channel-update pecl.php.net; \
  +    docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl
  +
   RUN if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
  -  pecl channel-update pecl.php.net && pecl install memcached-2.2.0 mcrypt-1.0.1 && docker-php-ext-enable memcached \
  +  pecl install memcached-2.2.0 mcrypt-1.0.1 && docker-php-ext-enable memcached \
   ;else \
  -  pecl channel-update pecl.php.net && pecl install memcached mcrypt-1.0.1 && docker-php-ext-enable memcached \
  +  pecl install memcached mcrypt-1.0.1 && docker-php-ext-enable memcached \
   ;fi
   
   # Add a non-root user to help install ffmpeg:
  
positive.code: ARG INSTALL_PHPREDIS=false
  RUN if [ ${INSTALL_PHPREDIS} = true ]; then \
      # Install Php Redis Extension
      printf "\n" | pecl install -o -f redis \
      &&  rm -rf /tmp/pear \
      &&  docker-php-ext-enable redis \
  ;fi
  
  ARG INSTALL_FFMPEG=false
  RUN if [ ${INSTALL_FFMPEG} = true ]; then \
  
negative.code: # Install MongoDB drivers:
  ARG INSTALL_MONGO=false
  RUN if [ ${INSTALL_MONGO} = true ]; then \
        if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
          pecl install mongo; \
          docker-php-ext-enable mongo; \
        else \
          pecl install mongodb; \
          docker-php-ext-enable mongodb; \
        fi; \
      fi
  
  ###########################################################################
  # YAML: extension
  