Follow platform runtime contract: HTTP server on 8080, /health, SIGTERM

This commit is contained in:
7355608
2026-07-04 00:00:27 +08:00
parent ee662b2692
commit c3e09f535f
4 changed files with 113 additions and 0 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM modelhubxc-4pd.tencentcloudcr.com/xc_agent_platform/python:3.11-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8080
CMD ["python", "main.py"]