anchor.diff:      php5-memcache \
       php5-xdebug \
       # Cleanup
  -    && DEBIAN_FRONTEND=noninteractive apt-get clean \
  -    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  +    && DEBIAN_FRONTEND=noninteractive apt-get clean && \
  +    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
   
   # Composer
   RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  
positive.code:     mc \
      supervisor \
      # Cleanup
      && DEBIAN_FRONTEND=noninteractive apt-get clean \
      && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  
  # Set timezone and locale.
  RUN dpkg-reconfigure locales && \
  
negative.code: RUN drush dl registry_rebuild
  
  ## PHP settings
  RUN mkdir -p /var/www/docroot && \
      # PHP-FPM settings
      sed -i 's/memory_limit = .*/memory_limit = 256M/' /etc/php5/fpm/php.ini && \
      sed -i 's/max_execution_time = .*/max_execution_time = 300/' /etc/php5/fpm/php.ini && \
      sed -i 's/upload_max_filesize = .*/upload_max_filesize = 500M/' /etc/php5/fpm/php.ini && \
      sed -i 's/post_max_size = .*/post_max_size = 500M/' /etc/php5/fpm/php.ini && \
      sed -i '/error_log = php_errors.log/c\error_log = \/dev\/stdout/' /etc/php5/fpm/php.ini && \
      sed -i '/listen = /c\listen = 0.0.0.0:9000' /etc/php5/fpm/pool.d/www.conf && \
      sed -i '/listen.allowed_clients/c\;listen.allowed_clients =' /etc/php5/fpm/pool.d/www.conf && \
      sed -i '/;daemonize = yes/c\daemonize = no' /etc/php5/fpm/php-fpm.conf && \
      sed -i '/;catch_workers_output/c\catch_workers_output = yes' /etc/php5/fpm/php-fpm.conf && \
      # PHP CLI settings
      sed -i 's/memory_limit = .*/memory_limit = 512M/' /etc/php5/cli/php.ini && \
      sed -i 's/max_execution_time = .*/max_execution_time = 600/' /etc/php5/cli/php.ini && \
      sed -i '/error_log = php_errors.log/c\error_log = \/dev\/stdout/' /etc/php5/cli/php.ini && \
      # PHP module settings
      echo 'opcache.memory_consumption=128' >> /etc/php5/mods-available/opcache.ini
  
  COPY config/php5/xdebug.ini /etc/php5/mods-available/xdebug.ini
  
  # Adding NodeJS repo (for up-to-date versions)
  # This command is a stripped down version of "curl --silent --location https://deb.nodesource.com/setup_0.12 | bash -"
  RUN curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
      echo 'deb https://deb.nodesource.com/node_0.12 wheezy main' > /etc/apt/sources.list.d/nodesource.list && \
      echo 'deb-src https://deb.nodesource.com/node_0.12 wheezy main' >> /etc/apt/sources.list.d/nodesource.list
  
  # Other language packages and dependencies
  RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
      DEBIAN_FRONTEND=noninteractive apt-get -y --force-yes --no-install-recommends install \
      ruby1.9.1-full \
      rlwrap \
      make \
      gcc \
      nodejs \
      # Cleanup
      && DEBIAN_FRONTEND=noninteractive apt-get clean &&\
      rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  
  # Bundler
  RUN gem install bundler
  