potiuk commented on PR #35026: URL: https://github.com/apache/airflow/pull/35026#issuecomment-1787739107
Yep. > Hey ! I came up with a better solution in [65318ca](https://github.com/apache/airflow/commit/65318caa011f995555d05a6a04f1b51bbe631ae1): > > I am passing pip cache directory directly to [an env variable](https://github.com/apache/airflow/blob/65318caa011f995555d05a6a04f1b51bbe631ae1/Dockerfile#L1205) (`PIP_CACHE_DIR=/tmp/.cache/pip`). This allow to avoid passing the following arg: `--cache-dir=/tmp/.cache/pip` to every `pip install` command : I could forget one and loose the potential of caching whereas with the globa `ENV` definition, no forgetting 😲 . I tested it and it seems to be working fine. > > Wdyt guys? Yep. Good idea. -- 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]
