With a cache directory that can be 0 minute.
RUN --mount=type=cache,target=/root/.cache/pip pip install ...