When I use the following command, what I understand is that the -i option indicates the source from which I want to download the package.
--extra-index-url refers to the alternative source behind it.
However, the actual test result I got was that I always accessed the source after the "--extra-index-url" parameter, and never downloaded from the source after the "-i" parameter.
I don't understand why this is the case.Could help me solve this problem? Thank you.
RUN --mount=type=cache,target=/root/.cache/pip \
pip install --default-timeout=120 --retries=10 \
-r requirements.txt \
-i https://mydomain.com/repository/pypi_group/simple \
--extra-index-url https://pypi.org/simple/