FROM python:3.13-slim

WORKDIR /app

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

# Copy application
COPY api/ api/
COPY mcp_server/ mcp_server/
COPY config/ config/

# Create data directory for skills/memory
RUN mkdir -p /opt/data/skills /opt/data/memory

ENV PORT=3000
EXPOSE 3000

CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "3000", "--log-level", "info"]
