content: FROM python:3.10-slim
  
  WORKDIR /app/
  
  RUN echo "deb https://mirrors.aliyun.com/debian/ bookworm main non-free non-free-firmware contrib" > /etc/apt/sources.list && \
      echo "deb https://mirrors.aliyun.com/debian/ bookworm-updates main non-free non-free-firmware contrib" >> /etc/apt/sources.list && \
      echo "deb https://mirrors.aliyun.com/debian-security bookworm-security main non-free non-free-firmware contrib" >> /etc/apt/sources.list
  # Install system dependencies
  RUN apt-get update && apt-get install -y \
      nmap \
      iputils-ping \
      netcat-openbsd \
      curl \
      wget \
      git \
      && rm -rf /var/lib/apt/lists/*
  
  # Install Go 1.21
  RUN wget https://go.dev/dl/go1.21.0.linux-amd64.tar.gz && \
      rm -rf /usr/local/go && \
      tar -C /usr/local -xzf go1.21.0.linux-amd64.tar.gz && \
      rm go1.21.0.linux-amd64.tar.gz
  
  ARG http_proxy
  ARG https_proxy
  
  ENV http_proxy=${http_proxy}
  ENV https_proxy=${https_proxy}
  
  # Configure Go environment variables
  ENV PATH=$PATH:/usr/local/go/bin:/root/go/bin
  ENV GOPROXY=https://mirrors.aliyun.com/goproxy/,direct
  
  # Install CVEmap
  RUN go install github.com/projectdiscovery/cvemap/cmd/cvemap@latest
  
  # Copy project files
  COPY requirements.txt /app/
  COPY ./ /app/pentest_agent
  
  # Install Python dependencies
  RUN apt-get update && \
      pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple -r /app/requirements.txt
    
  # Startup command
  # CMD ["sleep", "3600"]
  CMD ["python", "-u", "agents/execution_agent.py"]
  