anchor.diff:      curl -sSL https://nodejs.org/dist/${NODE_VERSION}/SHASUMS256.txt.asc | gpg --batch --decrypt | \
         grep " node-${NODE_VERSION}.tar.xz\$" | sha256sum -c | grep . && \
       tar -xf node-${NODE_VERSION}.tar.xz && \
  -    cd node-${NODE_VERSION} && \
  +    (cd node-${NODE_VERSION} && \
       ./configure --prefix=/usr ${CONFIG_FLAGS} && \
       make -j$(getconf _NPROCESSORS_ONLN) && \
  -    make install && \
  -    cd / && \
  +    make install) && \
  +    (cd $(npm root -g)/npm && npm install fs-extra && sed -i -e s/graceful-fs/fs-extra/ -e s/fs.rename/fs.move/ ./lib/utils/rename.js) && \
       if [ -x /usr/bin/npm ]; then \
         npm install -g npm@${NPM_VERSION} && \
         find /usr/lib/node_modules/npm -name test -o -name .bin -type d | xargs rm -rf; \
       fi && \
  -    apk del curl make gcc g++ linux-headers binutils-gold gnupg ${DEL_PKGS} && \
  +    gem install bundler --no-ri --no-rdoc && \
  +    (cd /usr/src/app && bundle install -j 4) && \
  +    (cd /usr/src/app && curl -sS https://getcomposer.org/installer | php) && \
  +    apk del --purge curl make gcc g++ linux-headers binutils-gold gnupg ${DEL_PKGS} && \
       rm -rf ${RM_DIRS} /node-${NODE_VERSION}* /usr/share/man /tmp/* /var/cache/apk/* \
         /root/.npm /root/.node-gyp /root/.gnupg /usr/lib/node_modules/npm/man \
  -      /usr/lib/node_modules/npm/doc /usr/lib/node_modules/npm/html /usr/lib/node_modules/npm/scripts
  +      /usr/lib/node_modules/npm/doc /usr/lib/node_modules/npm/html \
  +      /usr/lib/node_modules/npm/scripts
   
  -RUN apk add --update curl && \
  -    gem install bundler --no-ri --no-rdoc && \
  -    bundle install -j 4 && \
  -    curl -sS https://getcomposer.org/installer | php && \
  -    apk del --purge curl
  +WORKDIR /usr/src/app/
   
   RUN mv composer.phar /usr/local/bin/composer
   RUN cd /usr/src/app/vendor/php-parser/ && composer install --prefer-source --no-interaction
  
positive.code: 
  COPY package.json /usr/src/app/
  
  RUN apk update && apk add python python3 php5-phar php5-openssl php5-cli php5-json php5-zlib php5-xml
  
  ENV NODE_VERSION=v5.12.0 \
      NPM_VERSION=3
  
  # Based on https://github.com/mhart/alpine-node
  RUN apk add --no-cache curl make gcc g++ linux-headers binutils-gold gnupg libstdc++ && \
  
negative.code: COPY . /usr/src/app
  RUN chown -R app:app /usr/src/app
  
  # ENV PURE_HASH=1
  # ENV CODECLIMATE_PROFILE=1
  
  USER app
  
  CMD ["/usr/src/app/bin/duplication"]
  