3 ms·
https://docs.astral.sh/uv/guides/integration/docker/#intermediate-layers https://docs.astral.sh/uv/guides/integration/docker/#interme... You kind of have to re
by rtpg 1y ago
https://docs.astral.sh/uv/guides/integration/docker/#intermediate-layers https://docs.astral.sh/uv/guides/integration/docker/#interme...
You kind of have to read between the lines and "know" this is a good solution and then when you see it it's like "right of course".
- m000 1y agoNice tricks! I wasn't aware of the cache mounts, so I was building with UV_NO_CACHE=1. Cache mounts should also come handy when installing OS packages in multi-stage builds. I still couldn't find the "global pip environment" part, unless by that you meant the "active pip environment", pointed by VIRTUAL_ENV during image building.