V0lantis commented on PR #35026: URL: https://github.com/apache/airflow/pull/35026#issuecomment-1774724955
Thank you @potiuk for this detailed comment on how the Dockerfile is built. I came up with the following (d952c9c5b1): To invalidate cache between two different python versions, I am using the `id` param from `--mount=type=cache` [argument](https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/reference.md#run---mounttypecache). This allow to specify the version of python and the architecture on which it is built. I hope this will solve the issue of cached invalidation you mentioned above. Result : ```jsx => [airflow-build-image 15/16] RUN --mount=type=cache,[id=dockerhub.containers.mpi-internal.com/python:3.11-slim-bullseye-arm64,target=/home/airflow/.cache/pip,uid=50000](http://id%3Ddockerhub.containers.mpi-internal.com/python:3.11-slim-bullseye-arm64,target=/home/airflow/.cache/pip,uid=50000) if [[ false == "true" ]]; then bash /scr 7.7s ``` -- 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]
