anchor.diff:  ENV INVENTREE_HOME="/home/inventree"
   
   # GitHub settings
  -ENV INVENTREE_REPO="${repository}"
  -ENV INVENTREE_BRANCH="${branch}"
  +ENV INVENTREE_GIT_REPO="${repository}"
  +ENV INVENTREE_GIT_BRANCH="${branch}"
  +ENV INVENTREE_GIT_TAG="${tag}"
   
   ENV INVENTREE_LOG_LEVEL="INFO"
   ENV INVENTREE_DOCKER="true"
  
positive.code: # GitHub source
  ARG repository="https://github.com/inventree/InvenTree.git"
  ARG branch="master"
  
  ENV PYTHONUNBUFFERED 1
  
  
negative.code: 
  FROM base as production
  # Clone source code
  RUN echo "Downloading InvenTree from ${INVENTREE_GIT_REPO}"
  
  RUN git clone --branch ${INVENTREE_GIT_BRANCH} --depth 1 ${INVENTREE_GIT_REPO} ${INVENTREE_HOME}
  
  # Checkout against a particular git tag
  RUN if [ -n "${INVENTREE_GIT_TAG}" ] ; then cd ${INVENTREE_HOME} && git fetch --all --tags && git checkout tags/${INVENTREE_GIT_TAG} -b v${INVENTREE_GIT_TAG}-branch ; fi
  
  # Install InvenTree packages
  RUN pip install --no-cache-dir -U -r ${INVENTREE_HOME}/requirements.txt
  