# 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}

WORKDIR /app

# Copy only what the runtime needs (see .dockerignore)
COPY src/ ./src/

ENV PORT=8080
ENV PYTHONUNBUFFERED=1
# STRATEGY_ID and tokens are injected by the platform at run time — never bake them in.

EXPOSE 8080

# Start HTTP service only (no register / submit side effects)
CMD ["python", "-m", "src.server"]
