potiuk commented on issue #6266: [AIRFLOW-2439] Production Docker image support 
including refactoring of build scripts - depends on [AIRFLOW-5704]
URL: https://github.com/apache/airflow/pull/6266#issuecomment-544829767
 
 
   > > This is exactly what I can do using --copy-from as described above
   > 
   > Are you thinking something like
   > 
   > ```dockerfile
   > FROM base as compiler
   > 
   > RUN apt-get install build-essential mysql-dev ...
   > 
   > RUN pip install --local -e  '.[$extras]' && pip uninstall --yes 
apache-airflow
   > 
   > FROM base as prod
   > 
   > RUN apt-get install libmysql
   > 
   > COPY --from=compiler /home/airflow/.local /home/airflow/.local
   > ```
   > 
   > Or have I misunderstood you?
   
   Correct. That's something like that. I believe that .local will have 
everything that is needed including compiled libraries etc. It might be that we 
will miss some dependencies though (I will double-check if we need to get some 
other libraries from the system and update it)

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to