You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/10/21 13:33:06 UTC
[GitHub] [airflow] ashb commented on issue #6266: [AIRFLOW-2439] Production
Docker image support including refactoring of build scripts - depends on
[AIRFLOW-5704]
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