ecerulm commented on issue #14845:
URL: https://github.com/apache/airflow/issues/14845#issuecomment-800992940


   After conversation with @potiuk, the problem is that it will take the 
constraints from master, you need to make sure that it takes the constraints 
for 2.0.1 (with `AIRFLOW_CONSTRAINTS_REFERENCE` ) so that the right versions of 
the provider packages are installed: 
   
   ```
   docker build . \
     --tag baseairflow:2.0.1 \
     --build-arg AIRFLOW_VERSION="2.0.1" \
     --build-arg AIRFLOW_INSTALL_VERSION="==2.0.1" \
     --build-arg AIRFLOW_CONSTRAINTS_REFERENCE="constraints-2.0.1"
     --build-arg PYTHON_BASE_IMAGE='python:3.8-buster' \
     --build-arg PYTHON_MAJOR_MINOR_VERSION='3.8' \
     2>&1 | tee ../docker-baseairflow.log
   ``` 


----------------------------------------------------------------
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