feat: add operator-packages-volume to docker-compose and update Docke… (#179)

* feat: add operator-packages-volume to docker-compose and update Dockerfile for site-packages path

* feat: add retry
This commit is contained in:
hhhhsc701
2025-12-18 20:32:42 +08:00
committed by GitHub
parent 27b1cc8e09
commit be875086db
4 changed files with 38 additions and 11 deletions

View File

@@ -23,7 +23,8 @@ RUN --mount=type=cache,target=/root/.cache/uv \
UV_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu" uv pip install -e . --system --index-strategy unsafe-best-match \
&& UV_EXTRA_INDEX_URL="https://download.pytorch.org/whl/cpu" uv pip install -r /opt/runtime/datamate/ops/pyproject.toml --system \
&& uv pip uninstall torch torchvision --system \
&& python -m spacy download zh_core_web_sm
&& python -m spacy download zh_core_web_sm \
&& echo "/usr/local/lib/ops/site-packages" > /usr/local/lib/python3.11/site-packages/ops.pth
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& chmod +x /opt/runtime/start.sh \