Files
xc-adapt-agent/Dockerfile
2026-10-25 03:00:53 +08:00

21 lines
540 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM modelhubxc-4pd.tencentcloudcr.com/xc_agent_platform/python:3.11-slim
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PORT=8080
WORKDIR /app
# 平台未注入可用令牌(只给了占位符 tmp),此处内置账号 xcToken
ENV EXTERNAL_SERVICE_TOKEN=ea92401853464af1ba3becbd8bb4f2ac
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"]