airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [airflow] ashb commented on issue #6266: [AIRFLOW-2439] Production Docker image support including refactoring of build scripts - depends on [AIRFLOW-5704]
Date Mon, 21 Oct 2019 13:33:06 GMT
ashb 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-544516428
 
 
   > 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?

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


With regards,
Apache Git Services

Mime
View raw message