mik-laj commented on a change in pull request #13409:
URL: https://github.com/apache/airflow/pull/13409#discussion_r552405805



##########
File path: Dockerfile
##########
@@ -172,23 +169,42 @@ RUN if [[ -f /docker-context-files/.pypirc ]]; then \
         cp /docker-context-files/.pypirc /root/.pypirc; \
     fi
 
+COPY scripts/docker /scripts/docker
+# fix permission issue in Azure DevOps when running the scripts
+RUN chmod a+x /scripts/docker/*.sh
+
+ARG AIRFLOW_PIP_VERSION
+ENV AIRFLOW_PIP_VERSION=${AIRFLOW_PIP_VERSION}
+
+# Install Airflow ith "--user" flag, so that we can copy the whole .local 
folder to the final image
+# from the build image and always in non-editable mode
+ENV AIRFLOW_INSTALL_USER_FLAG="--user"
+ENV AIRFLOW_INSTALL_EDITABLE_FLAG=""
+
+# Upgrade to specific PIP version
 RUN pip install --upgrade "pip==${AIRFLOW_PIP_VERSION}"
 
 # By default we do not use pre-cached packages, but in CI/Breeze environment 
we override this to speed up
 # builds in case setup.py/setup.cfg changed. This is pure optimisation of 
CI/Breeze builds.
 ARG AIRFLOW_PRE_CACHED_PIP_PACKAGES="false"
 ENV AIRFLOW_PRE_CACHED_PIP_PACKAGES=${AIRFLOW_PRE_CACHED_PIP_PACKAGES}
 
+# By default we install providers from PyPI but in case of Breeze build we 
want to install providers
+# from local sources without the neeed of preparing provider packages upfront. 
This value is

Review comment:
       ```suggestion
   # from local sources without the need of preparing provider packages 
upfront. This value is
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to