feat: ModelHub XC 适配智能体(/health + /stats + 批量提交 worker)

This commit is contained in:
user_4BTLNC
2026-10-25 02:37:55 +08:00
commit bda57181f8
7 changed files with 1020 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM modelhubxc-4pd.tencentcloudcr.com/xc_agent_platform/python:3.11-slim
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PORT=8080
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8080
# 平台通过 /health 做 livenessProbe;SIGTERM 由 main.py 处理,30s 内退出
CMD ["python", "main.py"]