anchor.diff:      imagemagick \
       libidn \
       libpq \
  +    nodejs \
       nodejs-npm \
  -    nodejs \
       protobuf \
       su-exec \
       tini \
  -    yarn \
    && update-ca-certificates \
  + && mkdir -p /tmp/src /opt \
  + && wget -O yarn.tar.gz "https://github.com/yarnpkg/yarn/releases/download/v$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
  + && echo "$YARN_DOWNLOAD_SHA256 *yarn.tar.gz" | sha256sum -c - \
  + && tar -xzf yarn.tar.gz -C /tmp/src \
  + && rm yarn.tar.gz \
  + && mv /tmp/src/yarn-v$YARN_VERSION /opt/yarn \
  + && ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \
    && wget -O libiconv.tar.gz "http://ftp.gnu.org/pub/gnu/libiconv/libiconv-$LIBICONV_VERSION.tar.gz" \
    && echo "$LIBICONV_DOWNLOAD_SHA256 *libiconv.tar.gz" | sha256sum -c - \
  - && mkdir -p /tmp/src \
    && tar -xzf libiconv.tar.gz -C /tmp/src \
    && rm libiconv.tar.gz \
    && cd /tmp/src/libiconv-$LIBICONV_VERSION \
  
positive.code:     build-base \
      icu-dev \
      libidn-dev \
      libtool \
      postgresql-dev \
      protobuf-dev \
  
negative.code: 
  RUN bundle config build.nokogiri --with-iconv-lib=/usr/local/lib --with-iconv-include=/usr/local/include \
   && bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without test development \
   && yarn --pure-lockfile
  
  COPY . /mastodon
  
  