FROM python:3.12-slim

WORKDIR /app

# Install dependencies
RUN pip install --no-cache-dir \
    fastapi[standard]>=0.115.0 \
    uvicorn>=0.30.0 \
    google-cloud-firestore>=2.16.0 \
    pydantic>=2.0.0 \
    requests>=2.31.0

# Copy application code
COPY agent_message_bus/ /app/agent_message_bus/

ENV PYTHONPATH=/app
ENV PORT=8080

EXPOSE 8080

CMD ["uvicorn", "agent_message_bus.app:app", "--host", "0.0.0.0", "--port", "8080"]
