# dsh-qwen38nvfp4-gb10: DeepSeek Harness 0.2.0-rc.2 (deepseek-ai/deepseek-harness) driving Qwen3.8-27B NVFP4 served by vLLM in the same container.
# Port of gx10 start_dsh_qwen38nvfp4.sh (agents/dsh/Dockerfile + the agents/sandbox.sh
# qwen38-27b-nvfp4 profile). The vLLM part is the qwen38-27b-nvfp4-gb10 capsule's image.
# Base: vllm/vllm-openai:qwen38-flash-next (the image gx10's start script runs), pinned by its multi-arch index digest.
FROM vllm/vllm-openai@sha256:fc120ece0a388cc0aa1caad4a9f1cd92113484ab7ec2fd0efadd62585be05bf8

# The agent's tools (as gx10's agent images: git, ripgrep, jq, a C toolchain...).
RUN apt-get update -qq && apt-get install -y --no-install-recommends \
      ca-certificates git ripgrep jq curl xz-utils unzip file less procps build-essential python3-venv \
    && rm -rf /var/lib/apt/lists/*

# Node 22.23.2 (the version of the node:22 image gx10's agents use), official arm64 build,
# checked against nodejs.org's SHASUMS256.txt.
RUN curl -fsSL https://nodejs.org/dist/v22.23.2/node-v22.23.2-linux-arm64.tar.xz -o /tmp/node.tar.xz \
 && echo "fff4078c5def658577f92c88db7db3bc0072924bfb93fe52c1e744a54e94abb8  /tmp/node.tar.xz" | sha256sum -c - \
 && mkdir -p /opt/node && tar xJf /tmp/node.tar.xz -C /opt/node --strip-components=1 && rm /tmp/node.tar.xz \
 && ln -s /opt/node/bin/node /opt/node/bin/npm /opt/node/bin/npx /usr/local/bin/
ENV PATH=/opt/node/bin:$PATH

RUN npm install -g @deepseek-ai/dsh@0.2.0-rc.2 && npm cache clean --force
