anchor.diff:      && apt-get source nginx=${NGINX_VERSION} -y \
       && mv ${NGINX_BUILD_DIR}/nginx-${NGINX_VERSION}/src/http/modules/ngx_http_image_filter_module.c ${NGINX_BUILD_DIR}/nginx-${NGINX_VERSION}/src/http/modules/ngx_http_image_filter_module.bak \
   
  +
   # apply patch
       && curl -SL $IMAGE_FILTER_URL --output ${NGINX_BUILD_DIR}/nginx-${NGINX_VERSION}/src/http/modules/ngx_http_image_filter_module.c \
  -    && sed -i "s/--with-http_ssl_module/--with-http_ssl_module --with-http_image_filter_module --add-module=\/usr\/src\/nginx\/ngx_pagespeed-latest-stable/g" ${NGINX_BUILD_DIR}/nginx-${NGINX_VERSION}/debian/rules \
  +    && sed -i "s/--with-http_ssl_module/--with-http_ssl_module --with-http_image_filter_module --add-module=\/usr\/src\/nginx\/ngx_devel_kit --add-module=\/usr\/src\/nginx\/set-misc-nginx-module --add-module=\/usr\/src\/nginx\/ngx_pagespeed-latest-stable/g" ${NGINX_BUILD_DIR}/nginx-${NGINX_VERSION}/debian/rules \
   
   # Load Pagespeed module, PSOL and nginx
  -    && curl -SL https://github.com/pagespeed/ngx_pagespeed/archive/latest-stable.zip  -o ${NGINX_BUILD_DIR}/latest-stable.zip \
  +    && curl -SL https://github.com/pagespeed/ngx_pagespeed/archive/v${NGINX_PAGESPEED_VERSION}-stable.zip -o ${NGINX_BUILD_DIR}/latest-stable.zip \
       && unzip latest-stable.zip \
  -    && mv incubator-pagespeed-ngx-latest-stable ngx_pagespeed-latest-stable \
  +    && mv incubator-pagespeed-ngx-${NGINX_PAGESPEED_VERSION}-stable ngx_pagespeed-latest-stable \
       && cd ngx_pagespeed-latest-stable \
       && curl -SL https://dl.google.com/dl/page-speed/psol/${NGINX_PSOL_VERSION}-x64.tar.gz -o ${NGINX_PSOL_VERSION}.tar.gz \
       && tar -xzf ${NGINX_PSOL_VERSION}.tar.gz \
  
positive.code:     && usermod -d /var/lib/mongodb -a -G nogroup mongodb \
      && usermod -d /var/lib/redis redis \
  
  # add nginx repo
      && curl -s https://nginx.org/keys/nginx_signing.key | apt-key add - \
      && cp /etc/apt/sources.list /etc/apt/sources.list.bak \
  
negative.code: 
  # default fcgi and php to 7.1
      && mv /usr/bin/php-cgi /usr/bin/php-cgi-old \
      && ln -s /usr/bin/php-cgi7.1 /usr/bin/php-cgi \
      && update-alternatives --set php /usr/bin/php7.1 \
      && update-alternatives --set phar /usr/bin/phar7.1 \
      && update-alternatives --set phar.phar /usr/bin/phar.phar7.1 \
  