This commit is contained in:
2026-06-15 10:48:31 +08:00
parent c90228ef7c
commit cbe5388e57
7 changed files with 116 additions and 117 deletions
+5
View File
@@ -19,5 +19,10 @@ if [ -f ${SCRIPTS_DIR}/apply_mineru_patches.py ]; then
${VENV}/bin/python ${SCRIPTS_DIR}/apply_mineru_patches.py || echo "[entrypoint] apply_mineru_patches.py failed (non-fatal)"
fi
# 确保 vllm 源码目录在 PYTHONPATH 中
# patch_vllm_platform.py 中的 os.environ 修改不持久化到父进程
# 这里无条件导出,防止 editable install 被破坏后 vllm 无法导入
export PYTHONPATH="/opt/vllm:${PYTHONPATH}"
echo "[entrypoint] starting: $*"
exec "$@"