From eaa972473596c7694a58de93f61b18d86d3a8881 Mon Sep 17 00:00:00 2001 From: Zhicheng Zhang Date: Tue, 23 Apr 2024 20:13:02 +0800 Subject: [PATCH] update image builder method --- .dev_scripts/build_image.sh | 4 ++++ modelscope/version.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.dev_scripts/build_image.sh b/.dev_scripts/build_image.sh index a5deab6c..2818e478 100644 --- a/.dev_scripts/build_image.sh +++ b/.dev_scripts/build_image.sh @@ -169,6 +169,10 @@ else docker_file_content="${docker_file_content} \nRUN pip uninstall -y tb-nightly tensorboard && pip install --no-cache-dir -U tensorboard && TORCH_CUDA_ARCH_LIST='6.0 6.1 7.0 7.5 8.0 8.9 9.0 8.6+PTX' python -c 'from modelscope.utils.pre_compile import pre_compile_all;pre_compile_all()'" fi +docker_file_content="${docker_file_content} \n RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple && \ + pip config set install.trusted-host mirrors.aliyun.com && \ + cp /tmp/resources/ubuntu2204.aliyun /etc/apt/sources.list " + printf "$docker_file_content" > Dockerfile while true diff --git a/modelscope/version.py b/modelscope/version.py index 3811b6f7..20dc9c18 100644 --- a/modelscope/version.py +++ b/modelscope/version.py @@ -1,5 +1,5 @@ # Make sure to modify __release_datetime__ to release time when making official release. -__version__ = '1.14.0rc2' +__version__ = '1.14.0rc3' # default release datetime for branches under active development is set # to be a time far-far-away-into-the-future __release_datetime__ = '2024-04-22 00:00:00'