Files
xc_agent_platform_demo/Dockerfile

20 lines
586 B
Docker
Raw Normal View History

# ModelHub XC adaptation agent — Phase1 skeleton
# Default base MUST stay the platform image (do not swap to public mirrors).
ARG BASE_IMAGE=modelhubxc-4pd.tencentcloudcr.com/xc_agent_platform/python:3.11-slim
FROM ${BASE_IMAGE}
2026-06-03 23:39:27 +08:00
WORKDIR /app
# Copy only what the runtime needs (see .dockerignore)
COPY src/ ./src/
COPY templates/ ./templates/
2026-06-03 23:39:27 +08:00
ENV PORT=8080
ENV PYTHONUNBUFFERED=1
# STRATEGY_ID and tokens are injected by the platform at run time — never bake them in.
2026-06-03 23:39:27 +08:00
EXPOSE 8080
# Start HTTP service only (no register / submit side effects)
CMD ["python", "-m", "src.server"]