anchor.diff:      mkdir -pv "${AIRFLOW_HOME}"; \
       mkdir -pv "${AIRFLOW_HOME}/dags"; \
       mkdir -pv "${AIRFLOW_HOME}/logs"; \
  -    chown -R "airflow:root" "${AIRFLOW_USER_HOME_DIR}" "${AIRFLOW_HOME}"; \
  +    chown -R airflow:0 "${AIRFLOW_USER_HOME_DIR}" "${AIRFLOW_HOME}"; \
       find "${AIRFLOW_HOME}" -executable -print0 | xargs --null chmod g+x && \
           find "${AIRFLOW_HOME}" -print0 | xargs --null chmod g+rw
   
  -COPY --chown=airflow:root --from=airflow-build-image /root/.local "${AIRFLOW_USER_HOME_DIR}/.local"
  -COPY --chown=airflow:root scripts/in_container/prod/entrypoint_prod.sh /entrypoint
  -COPY --chown=airflow:root scripts/in_container/prod/clean-logs.sh /clean-logs
  +COPY --chown=airflow:0 --from=airflow-build-image \
  +     "${AIRFLOW_USER_HOME_DIR}/.local" "${AIRFLOW_USER_HOME_DIR}/.local"
  +COPY --chown=airflow:0 scripts/in_container/prod/entrypoint_prod.sh /entrypoint
  +COPY --chown=airflow:0 scripts/in_container/prod/clean-logs.sh /clean-logs
   
   # Make /etc/passwd root-group-writeable so that user can be dynamically added by OpenShift
   # See https://github.com/apache/airflow/issues/9248
  
positive.code: 
  ARG AIRFLOW_HOME=/opt/airflow
  ARG AIRFLOW_UID="50000"
  
  ARG PYTHON_BASE_IMAGE="python:3.6-slim-buster"
  
  
negative.code:     AIRFLOW_CONSTRAINTS_REFERENCE=${AIRFLOW_CONSTRAINTS_REFERENCE} \
      AIRFLOW_CONSTRAINTS_LOCATION=${AIRFLOW_CONSTRAINTS_LOCATION} \
      DEFAULT_CONSTRAINTS_BRANCH=${DEFAULT_CONSTRAINTS_BRANCH} \
      PATH=${PATH}:${AIRFLOW_USER_HOME_DIR}/.local/bin \
      AIRFLOW_PIP_VERSION=${AIRFLOW_PIP_VERSION} \
      PIP_PROGRESS_BAR=${PIP_PROGRESS_BAR} \
      AIRFLOW_USER_HOME_DIR=${AIRFLOW_USER_HOME_DIR} \
      AIRFLOW_HOME=${AIRFLOW_HOME} \
      AIRFLOW_UID=${AIRFLOW_UID} \
      AIRFLOW_INSTALL_EDITABLE_FLAG="" \
      UPGRADE_TO_NEWER_DEPENDENCIES=${UPGRADE_TO_NEWER_DEPENDENCIES} \
      # By default PIP installs everything to ~/.local
      PIP_USER="true"
  
  COPY scripts/docker/install_mysql.sh scripts/docker/install_mssql.sh  /scripts/docker/
  
  RUN bash ./scripts/docker/install_mysql.sh dev \
      && bash ./scripts/docker/install_mssql.sh
  ENV PATH=${PATH}:/opt/mssql-tools/bin
  
  COPY docker-context-files /docker-context-files
  
  RUN adduser --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password \
         --quiet "airflow" --uid "${AIRFLOW_UID}" --gid "0" --home "${AIRFLOW_USER_HOME_DIR}" && \
      mkdir -p ${AIRFLOW_HOME} && chown -R "airflow:0" "${AIRFLOW_USER_HOME_DIR}" ${AIRFLOW_HOME}
  
  USER airflow
  
  RUN if [[ -f /docker-context-files/pip.conf ]]; then \
          mkdir -p ${AIRFLOW_USER_HOME_DIR}/.config/pip; \
          cp /docker-context-files/pip.conf "${AIRFLOW_USER_HOME_DIR}/.config/pip/pip.conf"; \
      fi
  
  # Copy all scripts required for installation - changing any of those should lead to
  # rebuilding from here
  COPY --chown=airflow:0 scripts/docker/* /scripts/docker/
  
  ENV AIRFLOW_PRE_CACHED_PIP_PACKAGES=${AIRFLOW_PRE_CACHED_PIP_PACKAGES} \
      INSTALL_PROVIDERS_FROM_SOURCES=${INSTALL_PROVIDERS_FROM_SOURCES} \
  