FROM python:3.12-slim

# Create non-root user
RUN useradd -m -s /bin/bash agent

# Install essential Python tools
RUN pip install --no-cache-dir \
    ruff \
    mypy \
    pyright \
    pytest \
    pytest-asyncio \
    pytest-cov \
    httpx \
    pip-audit

# Copy project
COPY --chown=agent:agent . /home/agent/workspace

USER agent
WORKDIR /home/agent/workspace

# Default command
CMD ["python"]
