# Worker Runtime HTTP Server

FROM python:3.11-slim

WORKDIR /app

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

# Copy worker code
COPY agent.py ./
COPY runtime/ ./runtime/
COPY contract.toml ./

# Expose the HTTP port
EXPOSE 8080

# Run the worker HTTP server
# The worker class is auto-discovered from the runtime.worker module
CMD ["python", "-m", "aimp_sdk.worker_http_server", "--module", "runtime.worker", "--host", "0.0.0.0", "--port", "8080"]
