GitHub user potiuk added a comment to the discussion: Error - /entrypoint: line 20: airflow: command not found
First of all you do not follow the right examples and best practices of installing new dependencies, clearly explained in our docs: https://airflow.apache.org/docs/docker-stack/build.html#important-notes-for-the-base-images You did not pin airflow in your `pip` install as clearly advised in our docs. If you don't do it `pip` might decide to upgrade or downgrade any packages (including airflow) because for `pip` it is just one of the packages installed. You should follow it and also it's very much your responsibity to look at the output of the docker build and see what `pip` is doing - you should carefully review what happens when you extend the image - because with `pip` it also depends on the moment you run it - if someone releases new depndencies today, yourr `pip install` might produce different output tomorrow. So you should carefully review the output and see if the upgraded (or downgraded - pip can sometimes downgrade the packages as well) - otherwise you are at the mercy of those who migh simply "twine upload" a new package and break your pipeline. Not even mentioning all the potential security issues it causes. This is also why we recommend people to have monitored and consciously prepared builld image pipelines so that they are prepared for all kind of scenarios where 3rd-party dependency release migh wreak havoc in their systems. Pinnint dependnecies and consciously upgrading them is recommended. GitHub link: https://github.com/apache/airflow/discussions/53623#discussioncomment-13862975 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
