mirror of
https://github.com/modelscope/modelscope.git
synced 2026-09-01 19:49:03 +02:00
fix: remove global pip extra-index-url from docker images
Align LLM image pip config with GPU images by dropping the persistent pypi.org extra-index-url that was added for modelscope-hub fallback. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
if [ "$MODELSCOPE_SDK_DEBUG" == "True" ]; then
|
||||
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
|
||||
pip config set global.extra-index-url https://pypi.org/simple/
|
||||
pip config set install.trusted-host mirrors.aliyun.com
|
||||
pip install -r requirements/tests.txt
|
||||
git config --global --add safe.directory /Maas-lib
|
||||
|
||||
@@ -63,7 +63,6 @@ RUN bash /tmp/install.sh {version_args} && \
|
||||
pip install --no-cache-dir transformers diffusers 'timm>=0.9.0' && pip cache purge; \
|
||||
pip install --no-cache-dir omegaconf==2.3.0 && pip cache purge; \
|
||||
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple && \
|
||||
pip config set global.extra-index-url https://pypi.org/simple && \
|
||||
pip config set install.trusted-host mirrors.aliyun.com && \
|
||||
cp /tmp/resources/ubuntu2204.aliyun /etc/apt/sources.list
|
||||
|
||||
|
||||
@@ -47,5 +47,4 @@ else
|
||||
fi
|
||||
|
||||
pip config set global.index-url https://mirrors.cloud.aliyuncs.com/pypi/simple
|
||||
pip config set global.extra-index-url https://pypi.org/simple
|
||||
pip config set install.trusted-host mirrors.cloud.aliyuncs.com
|
||||
|
||||
Reference in New Issue
Block a user