content: # AI Agents Image with Python and GitHub CLI
  FROM python:3.10-slim
  
  # Install system dependencies
  RUN apt-get update && apt-get install -y \
      git \
      curl \
      jq \
      nodejs \
      npm \
      && rm -rf /var/lib/apt/lists/*
  
  # Install GitHub CLI
  RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
      && chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
      && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
      && apt-get update \
      && apt-get install -y gh \
      && rm -rf /var/lib/apt/lists/*
  
  # Install Claude Code globally (will use mounted credentials from host)
  # The package is @anthropic-ai/claude-code but the CLI command is just 'claude'
  RUN npm install -g @anthropic-ai/claude-code@latest && \
      # Ensure claude is in PATH by creating a symlink if needed
      which claude || ln -s /usr/local/lib/node_modules/@anthropic-ai/claude-code/bin/claude /usr/local/bin/claude
  
  # Create working directory
  WORKDIR /workspace
  
  # Copy agent-specific requirements
  COPY docker/requirements/requirements-agents.txt ./
  RUN pip install --no-cache-dir -r requirements-agents.txt
  
  # Python environment configuration
  ENV PYTHONUNBUFFERED=1 \
      PYTHONDONTWRITEBYTECODE=1 \
      PYTHONPYCACHEPREFIX=/tmp/pycache \
      PYTHONUTF8=1
  
  # Create a non-root user that will be overridden by docker-compose
  RUN useradd -m -u 1000 agentuser
  
  # Default command
  CMD ["bash"]
  