From ad93b283a5f58d47b4e847d7057310669640ae58 Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 21 Sep 2025 23:01:28 +0800 Subject: [PATCH] . --- Dockerfile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5ff3cd388..71f7c7de3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -187,12 +187,19 @@ RUN mkdir -p /wheels && \ pip wheel filelock typing-extensions sympy fsspec jinja2 networkx -w /wheels # ── ✅ 再打包 runtime 阶段必需依赖 ──────────────────────────────────────────── -RUN pip wheel \ - pydantic orjson psutil pyzmq pynvml \ - transformers==4.56.0 uvicorn fastapi IPython aiohttp \ - setproctitle uvloop sentencepiece triton pillow cachetools msgspec blake3 cloudpickle compressed-tensors einops openai py-cpuinfo dill partial_json_parser python-multipart torchao \ - -w /wheels +# RUN pip wheel \ +# pydantic orjson psutil pyzmq pynvml \ +# transformers==4.56.0 uvicorn fastapi IPython aiohttp \ +# setproctitle uvloop sentencepiece triton pillow cachetools msgspec blake3 cloudpickle compressed-tensors einops openai py-cpuinfo dill partial_json_parser python-multipart torchao \ +# -w /wheels +# ── ✅ 再打包 runtime 阶段必需依赖(本地优先;缺了再联网) ──────────────────────── +RUN bash -lc '\ + set -euo pipefail; \ + PKGS="pydantic orjson psutil pyzmq pynvml transformers==4.56.0 uvicorn fastapi IPython aiohttp setproctitle uvloop sentencepiece triton pillow cachetools msgspec blake3 cloudpickle compressed-tensors einops openai py-cpuinfo dill partial_json_parser python-multipart torchao"; \ + pip wheel --no-index --find-links=/wheels -w /wheels $PKGS || true; \ + pip wheel -c /tmp/local_constraints_build.txt --find-links=/wheels --prefer-binary -w /wheels $PKGS \ +' # 产出 openai-harmony 的离线 wheel RUN pip wheel --no-deps openai-harmony==0.0.4 -w /wheels