anchor.diff:      
   # ------------------------------------------------------------------------------
   # Configure php-fpm
  -RUN sed -i -e "s/output_buffering\s*=\s*4096/output_buffering = Off/g" /etc/php5/fpm/php.ini
  -RUN sed -i -e "s/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g" /etc/php5/fpm/php.ini
  -RUN sed -i -e "s/upload_max_filesize\s*=\s*2M/upload_max_filesize = 1G/g" /etc/php5/fpm/php.ini
  -RUN sed -i -e "s/post_max_size\s*=\s*8M/post_max_size = 1G/g" /etc/php5/fpm/php.ini
  -RUN php5enmod mcrypt
  +RUN sed -i -e "s/output_buffering\s*=\s*4096/output_buffering = Off/g" /etc/php5/fpm/php.ini && \
  +    sed -i -e "s/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g" /etc/php5/fpm/php.ini && \
  +    sed -i -e "s/upload_max_filesize\s*=\s*2M/upload_max_filesize = 1G/g" /etc/php5/fpm/php.ini && \
  +    sed -i -e "s/post_max_size\s*=\s*8M/post_max_size = 1G/g" /etc/php5/fpm/php.ini && \
  +    sed -i -e 's/;daemonize = yes/daemonize = no/g' /etc/php5/fpm/php-fpm.conf && \
  +    php5enmod mcrypt
   
   # ------------------------------------------------------------------------------
   # Configure nginx
  -RUN mkdir /var/www
  -RUN chown www-data:www-data /var/www
  -RUN rm /etc/nginx/sites-enabled/*
  -RUN rm /etc/nginx/sites-available/*
  -RUN sed -i -e"s/keepalive_timeout\s*65/keepalive_timeout 2/" /etc/nginx/nginx.conf
  -RUN sed -i -e"s/keepalive_timeout 2/keepalive_timeout 2;\n\tclient_max_body_size 100m/" /etc/nginx/nginx.conf
  -RUN echo "daemon off;" >> /etc/nginx/nginx.conf
  +RUN mkdir /var/www && \
  +    chown www-data:www-data /var/www && \
  +    rm /etc/nginx/sites-enabled/* && \
  +    rm /etc/nginx/sites-available/* && \
  +    sed -i -e"s/keepalive_timeout\s*65/keepalive_timeout 2/" /etc/nginx/nginx.conf && \
  +    sed -i -e"s/keepalive_timeout 2/keepalive_timeout 2;\n\tclient_max_body_size 100m/" /etc/nginx/nginx.conf && \
  +    echo "daemon off;" >> /etc/nginx/nginx.conf
  +
   ADD conf/pydio /etc/nginx/sites-enabled/
   RUN mkdir /etc/nginx/ssl
   RUN openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt -subj '/CN=localhost/O=My Company Name LTD./C=US'
  
positive.code: 
  # ------------------------------------------------------------------------------
  # Expose volumes
  VOLUME /pydio-data/files
  VOLUME /pydio-data/personal
  
  # ------------------------------------------------------------------------------
  # Add supervisord conf
  ADD conf/startup.conf /etc/supervisor/conf.d/
  
  # Start supervisor, define default command.
  CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]
  
negative.code: # Install Pydio
  ENV PYDIO_VERSION 6.2.0
  WORKDIR /var/www
  #RUN wget http://downloads.sourceforge.net/project/ajaxplorer/pydio/stable-channel/${PYDIO_VERSION}/pydio-core-${PYDIO_VERSION}.zip && \
  #    unzip pydio-core-${PYDIO_VERSION}.zip && \
  #    mv pydio-core-${PYDIO_VERSION} pydio-core && \
  #    chown -R www-data:www-data /var/www/pydio-core && \
  #    chmod -R 770 /var/www/pydio-core && \
  #    chmod 777  /var/www/pydio-core/data/files/ && \
  #    chmod 777  /var/www/pydio-core/data/personal/
  
  RUN mkdir -p /var/www/pydio-core/data/files && \
      mkdir -p /var/www/pydio-core/data/personal && \
      chown -R www-data:www-data /var/www/pydio-core && \
      chmod -R 770 /var/www/pydio-core && \
      chmod 777  /var/www/pydio-core/data/files/ && \
      chmod 777  /var/www/pydio-core/data/personal/
  
  
  WORKDIR /
  RUN ln -s /var/www/pydio-core/data pydio-data 
  