content: FROM ubuntu:24.04
  ARG TARGETPLATFORM
  
  RUN apt-get update -y \
    && apt-get upgrade -y \
    && apt-get install -y \
    curl \
    python3 \
    python3-pip \
    python3-dev \
    python3-venv \
    jq \
    tmux \
    screen \
    wget \
    make \
    bash \
    git \
    file \
    grep \
    sed \
    gawk \
    coreutils \
    findutils \
    apt-transport-https \
    ca-certificates \
    gnupg \
    snapd \
    software-properties-common \
    lsb-release \
    && apt-get clean
  
  # Install uv
  RUN curl -LsSf https://astral.sh/uv/install.sh | sh
  
  # Install kubectl
  RUN curl -LO "https://dl.k8s.io/release/v1.32.3/bin/${TARGETPLATFORM}/kubectl" \
    && install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
  
  
  # Install Helm
  RUN curl -fsSL https://packages.buildkite.com/helm-linux/helm-debian/gpgkey | gpg --dearmor | tee /usr/share/keyrings/helm.gpg > /dev/null \
    && apt-get install apt-transport-https --yes \
    && echo "deb [signed-by=/usr/share/keyrings/helm.gpg] https://packages.buildkite.com/helm-linux/helm-debian/any/ any main" | tee /etc/apt/sources.list.d/helm-stable-debian.list \
    && apt-get update \
    && apt-get install helm
  
  # Install Inspect tools support
  ENV PATH="$PATH:/opt/inspect_tool_support/bin"
  RUN python3 -m venv /opt/inspect_tool_support && \
  /opt/inspect_tool_support/bin/pip install inspect-tool-support && \
  /opt/inspect_tool_support/bin/inspect-tool-support post-install
  
  # Virtual environment setup
  ENV VIRTUAL_ENV=/opt/venv
  RUN python3 -m venv $VIRTUAL_ENV
  ENV PATH="$VIRTUAL_ENV/bin:$PATH"
  
  RUN mkdir /tmp/agent
  COPY pyproject.toml /tmp/agent/pyproject.toml
  COPY uv.lock /tmp/agent/uv.lock
  RUN cd /tmp/agent && pip install uv && uv sync --active
  
  # Mock sudo to avoid permission issues
  RUN echo -e '#!/bin/sh\nexec "$@"' > /usr/bin/sudo && chmod +x /usr/bin/sudo
  # Specify the command to run when the container starts
  CMD ["/bin/bash"]
  