This commit is contained in:
2026-01-09 09:28:02 +08:00
parent fafe4c6a41
commit adb90bbf10

View File

@@ -32,7 +32,7 @@ WORKDIR /opt/runtime
RUN --mount=type=cache,target=/root/.cache/uv \ RUN --mount=type=cache,target=/root/.cache/uv \
uv pip install -e .[all] --system \ uv pip install -e .[all] --system \
&& uv pip install -r /opt/runtime/datamate/ops/pyproject.toml --system \ && uv pip install -r /opt/runtime/datamate/ops/pyproject.toml --system \
&& python -m spacy download zh_core_web_sm \ && uv pip install https://ghproxy.net/https://github.com/explosion/spacy-models/releases/download/zh_core_web_sm-3.8.0/zh_core_web_sm-3.8.0-py3-none-any.whl --system \
&& echo "/usr/local/lib/ops/site-packages" > /usr/local/lib/python3.11/site-packages/ops.pth && 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 \ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \