anchor.diff:      \
       # OS dependencies
       apt-get update -y && apt-get install -y --no-install-recommends ${BUILD_DEPS} && \
  -    #pip3 install -U pip setuptools wheel && \
       \
       # Meteor installer doesn't work with the default tar binary, so using bsdtar while installing.
       # https://github.com/coreos/bugs/issues/1095#issuecomment-350574389
  
positive.code: # https://github.com/wekan/wekan/wiki/autologin
  #- OIDC_REDIRECTION_ENABLED=true
  #---------------------------------------------------------------------
  # https://github.com/wekan/wekan/issues/3585#issuecomment-1021522132
  # Add more Node heap:
  #   NODE_OPTIONS="--max_old_space_size=4096"
  # Add more stack:
  #   bash -c "ulimit -s 65500; exec node --stack-size=65500 main.js"
  #---------------------------------------------------------------------
  
  # Copy the app to the image
  COPY ${SRC_PATH} /home/wekan/app
  
negative.code:     \
      # Install Node dependencies. Python path for node-gyp.
      npm install -g npm@${NPM_VERSION} && \
      \
      # Change user to wekan and install meteor
      cd /home/wekan/ && \
      chown wekan --recursive /home/wekan && \
      echo "Starting meteor ${METEOR_RELEASE} installation...   \n" && \
      gosu wekan:wekan curl https://install.meteor.com/ | /bin/sh && \
      mv /root/.meteor /home/wekan/ && \
      chown wekan --recursive /home/wekan/.meteor && \
      \
      sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' /home/wekan/app/packages/meteor-useraccounts-core/package.js && \
      cd /home/wekan/.meteor && \
      gosu wekan:wekan /home/wekan/.meteor/meteor -- help; \
      \
      # Build app
      cd /home/wekan/app && \
      mkdir -p /home/wekan/.npm && \
      chown wekan --recursive /home/wekan/.npm /home/wekan/.config /home/wekan/.meteor && \
      chmod u+w *.json && \
      gosu wekan:wekan npm install && \
      gosu wekan:wekan /home/wekan/.meteor/meteor build --directory /home/wekan/app_build && \
      cd /home/wekan/app_build/bundle/programs/server/ && \
      chmod u+w *.json && \
      gosu wekan:wekan npm install && \
      cd node_modules/fibers && \
      node build.js && \
      cd ../.. && \
      # Remove legacy webbroser bundle, so that Wekan works also at Android Firefox, iOS Safari, etc.
      rm -rf /home/wekan/app_build/bundle/programs/web.browser.legacy && \
      mv /home/wekan/app_build/bundle /build && \
  