@@ -82,6 +82,15 @@ ARG PIP_EXTRA_INDEX_URL
8282ARG PIP_PYTORCH_CUDA_INDEX_BASE_URL=https://download.pytorch.org/whl
8383ARG PIP_PYTORCH_CUDA_NIGHTLY_INDEX_BASE_URL=https://download.pytorch.org/whl/nightly
8484
85+ # PIP supports multiple authentication schemes, including keyring
86+ # By parameterizing the PIP_KEYRING_PROVIDER variable and setting it to
87+ # disabled by default, we allow third-party to use keyring authentication for
88+ # their private Python indexes, while not changing the default behavior which
89+ # is no authentication.
90+ #
91+ # Reference: https://pip.pypa.io/en/stable/topics/authentication/#keyring-support
92+ ARG PIP_KEYRING_PROVIDER=disabled
93+
8594# Install uv for faster pip installs
8695RUN --mount=type=cache,target=/root/.cache/uv \
8796 python3 -m pip install uv
@@ -336,6 +345,15 @@ ARG PIP_EXTRA_INDEX_URL
336345ARG PIP_PYTORCH_CUDA_INDEX_BASE_URL=https://download.pytorch.org/whl
337346ARG PIP_PYTORCH_CUDA_NIGHTLY_INDEX_BASE_URL=https://download.pytorch.org/whl/nightly
338347
348+ # PIP supports multiple authentication schemes, including keyring
349+ # By parameterizing the PIP_KEYRING_PROVIDER variable and setting it to
350+ # disabled by default, we allow third-party to use keyring authentication for
351+ # their private Python indexes, while not changing the default behavior which
352+ # is no authentication.
353+ #
354+ # Reference: https://pip.pypa.io/en/stable/topics/authentication/#keyring-support
355+ ARG PIP_KEYRING_PROVIDER=disabled
356+
339357# Install uv for faster pip installs
340358RUN --mount=type=cache,target=/root/.cache/uv \
341359 python3 -m pip install uv
0 commit comments