potiuk commented on code in PR #53770:
URL: https://github.com/apache/airflow/pull/53770#discussion_r2232671512


##########
Dockerfile:
##########
@@ -1730,6 +1763,15 @@ ENV RUNTIME_APT_DEPS=${RUNTIME_APT_DEPS} \
     GUNICORN_CMD_ARGS="--worker-tmp-dir /dev/shm" \
     AIRFLOW_INSTALLATION_METHOD=${AIRFLOW_INSTALLATION_METHOD}
 
+COPY --from=airflow-build-image \
+     "/usr/local/bin/python*" "/usr/local/bin/"
+
+COPY --from=airflow-build-image \
+     "/usr/local/bin/pip*" "/usr/local/bin/"
+
+COPY --parents --from=airflow-build-image \

Review Comment:
   That would solve both problems - with copying too much and with using 
`--parent`.  If we have "/usr/python" for example when only python is 
installed, all that we need to copy "/usr/python" and that can be done with 
regular COPY.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to