fix(docker): limit notebook deps to stable images only

Keep ipywidgets, jupyter_core, nbconvert, and nbclient inside the
INSTALL_MS_DEPS gate so latest and old image builds are unaffected.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
suluyan
2026-07-16 16:29:44 +08:00
parent 860323a22b
commit b5c6f8a462

View File

@@ -33,7 +33,8 @@ if [ "$INSTALL_MS_DEPS" = "True" ]; then \
pip install --no-cache-dir https://modelscope.oss-cn-beijing.aliyuncs.com/packages/imageio_ffmpeg-0.4.9-py3-none-any.whl --no-dependencies --force && \
pip install --no-cache-dir 'scipy' && \
pip install --no-cache-dir funtextprocessing typeguard==2.13.3 scikit-learn -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \
pip install --no-cache-dir 'decord>=0.6.0' mpi4py paint_ldm fasttext -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \
pip install --no-cache-dir 'decord>=0.6.0' mpi4py paint_ldm ipykernel fasttext -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html && \
pip install --no-cache-dir ipywidgets jupyter_core nbconvert nbclient && \
pip install --no-cache-dir 'blobfile>=1.0.5' && \
pip uninstall MinDAEC -y && \
pip install https://modelscope.oss-cn-beijing.aliyuncs.com/releases/dependencies/MinDAEC-0.0.2-py3-none-any.whl && \
@@ -41,8 +42,7 @@ if [ "$INSTALL_MS_DEPS" = "True" ]; then \
else \
pip install --no-cache-dir -r /var/modelscope/framework.txt && \
pip cache purge; \
fi && \
pip install --no-cache-dir ipywidgets ipykernel jupyter_core nbconvert nbclient
fi
ARG CUR_TIME={cur_time}
RUN echo $CUR_TIME