# Root Agent Runtime

FROM python:3.11-slim

WORKDIR /app

# Install dependencies
COPY runtime/pyproject.toml ./pyproject.toml
RUN pip install --no-cache-dir -e .

# Optional build-time asset preload pattern for heavyweight root runtimes:
# COPY runtime_preload.py ./runtime_preload.py
# RUN python -m runtime_preload

# Copy agent code
COPY agent.py contract.toml playground.py schemas.py ./
COPY models/ ./models/

# Run the agent
CMD ["python", "-m", "aimp_sdk.agent_runner", "--module", "/app/agent.py"]
