potiuk commented on pull request #13640:
URL: https://github.com/apache/airflow/pull/13640#issuecomment-759074800


   > Hmm your line works, the Dockerfile builds successfully and airflow runs. 
However, the issue is _not_ fixed. I wonder if it's because it's not fixed by 
this PR or if my installation is not properly updated?
   > 
![image](https://user-images.githubusercontent.com/46958547/104380581-83e96d80-552b-11eb-8108-99c77b3d4f97.png)
   
   aaaah. you use Prod image as a base.... 
   
   Just add `--user` flag right after `pip install`.
   
   Longer explanation:  In our prod image we use `--user` in order to optimize 
the image (when you use --user flag, everything is installed to 
"${HOME}/.local" (including any bin libraries/compiled stuff) and then thee 
${HOME}/.local folder can be copied over (we copy it so that no 
build-essentials like c/c++ compiler) are preesent in the final image.


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