From 245b522d3640054fd3efd34863150fb33c0833e9 Mon Sep 17 00:00:00 2001 From: "tao.chen" <93983997+taochen-ct@users.noreply.github.com> Date: Thu, 6 Aug 2026 12:30:33 +0800 Subject: [PATCH] feat: add seed to venv --- runtime/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/Dockerfile b/runtime/Dockerfile index 874b312..b695a5b 100644 --- a/runtime/Dockerfile +++ b/runtime/Dockerfile @@ -13,14 +13,14 @@ RUN mkdir -p /root/.jupyter/custom /app/.venv/share/jupyter/custom && \ echo '#top-panel, #top-panel-wrapper, .jp-Notebook-header, .jp-FileEditorHeader {display: none !important; height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: none !important; position: absolute !important; pointer-events: none !important; }' > /root/.jupyter/custom/custom.css && \ cp /root/.jupyter/custom/custom.css /app/.venv/share/jupyter/custom/custom.css -RUN uv venv --python 3.12 /opt/venv/python3.12 && \ +RUN uv venv --seed --python 3.12 /opt/venv/python3.12 && \ UV_DEFAULT_INDEX="https://pypi.tuna.tsinghua.edu.cn/simple/" uv pip install --python /opt/venv/python3.12/bin/python -r extras/requirements-py312 -RUN uv venv --python 3.8 /opt/venv/python3.8 && \ +RUN uv venv --seed --python 3.8 /opt/venv/python3.8 && \ UV_DEFAULT_INDEX="https://pypi.tuna.tsinghua.edu.cn/simple/" uv pip install --python /opt/venv/python3.8/bin/python -r extras/requirements-py38 && \ /opt/venv/python3.8/bin/python -m ipykernel install --prefix=/opt/venv/python3.12 --name=python38 --display-name="python3.8" -RUN uv venv --python 3.10 /opt/venv/python3.10 && \ +RUN uv venv --seed --python 3.10 /opt/venv/python3.10 && \ UV_DEFAULT_INDEX="https://pypi.tuna.tsinghua.edu.cn/simple/" uv pip install --python /opt/venv/python3.10/bin/python -r extras/requirements-py310 && \ /opt/venv/python3.10/bin/python -m ipykernel install --prefix=/opt/venv/python3.12 --name=python310 --display-name="python3.10"