From de1682c00d4b14df9d2fb425427d20777b1a32ff Mon Sep 17 00:00:00 2001 From: "tao.chen" <93983997+taochen-ct@users.noreply.github.com> Date: Fri, 14 Aug 2026 17:03:27 +0800 Subject: [PATCH] update: Dockerfile --- runtime/Dockerfile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/runtime/Dockerfile b/runtime/Dockerfile index 598c1d9..b6eabb4 100644 --- a/runtime/Dockerfile +++ b/runtime/Dockerfile @@ -12,15 +12,7 @@ COPY common/pyproject.toml common/pyproject.toml COPY runtime/pyproject.toml runtime/pyproject.toml RUN uv sync --frozen --no-dev --package runtime --no-install-workspace -COPY common ./common -COPY runtime ./runtime COPY extras ./extras -RUN uv sync --frozen --no-dev --package runtime - -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 --seed --python 3.8 /opt/venv/python3.8 && \ uv pip install --python /opt/venv/python3.8/bin/python -r extras/requirements-py38 && \ /opt/venv/python3.8/bin/python -m ipykernel install \ @@ -42,5 +34,14 @@ RUN uv venv --seed --python 3.12 /opt/venv/python3.12 && \ --name=python312 \ --display-name="Python 3.12" +COPY common ./common +COPY runtime ./runtime + +RUN uv sync --frozen --no-dev --package runtime +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 + + EXPOSE 8000 CMD ["uv", "run", "--frozen", "--package", "runtime", "gunicorn", "--config", "runtime/gunicorn.conf.py", "runtime.main:app"]