From 687d76494c9d85cc5892fdec1a7489cbf9158c1a Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 2 Jul 2025 15:54:49 +0800 Subject: [PATCH] . --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bc4966b..8e835d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -103,8 +103,11 @@ RUN python3 -m pip install --no-cache-dir /tmp/wheels/* && rm -rf /tmp/wheels # 安装运行时漏掉的依赖 RUN python3 -m pip install --no-cache-dir pydantic orjson psutil pyzmq pynvml transformers==4.48.3 uvicorn fastapi IPython aiohttp setproctitle uvloop sentencepiece triton -RUN apt-get install -y tini -ENTRYPOINT ["/usr/bin/tini", "--"] +# ✅ 添加 Tini(推荐) +ENV TINI_VERSION=v0.19.0 +ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini +RUN chmod +x /tini +ENTRYPOINT ["/tini", "--"] # 仅做 CI / CPU 自检 —— 输出帮助后退出 0 CMD ["python3", "-m", "sglang.launch_server", "--help"]