m64_8a809e3131db / Dockerfile
32 lines, 2.0 KBraw
1# opencode-qwen36-gb10: opencode 1.18.23 driving Qwen3.6-35B-A3B NVFP4 served by vLLM in the same container.2# Port of gx10 start_opencode_qwen36.sh. The vLLM part is the qwen36-35b-a3b-nvfp4-gb10 capsule's image; the opencode3# part is the opencode-dsflash-openrouter-gb10 capsule's (same version, same warm-up).4# Base: vllm/vllm-openai:gemma4-cu130 (vLLM 0.19.1, the image gx10's start script runs), pinned by its multi-arch index digest.5FROM vllm/vllm-openai@sha256:0d152595cd940ea1e0890fa190a37b7a86e3f7f0f5048ac3e2e4c14529fea83367RUN apt-get update -qq && apt-get install -y --no-install-recommends \8 ca-certificates git ripgrep jq curl xz-utils unzip file less procps build-essential python3-venv \9 && rm -rf /var/lib/apt/lists/*1011# Node 22.23.2, official arm64 build, checked against nodejs.org's SHASUMS256.txt.12RUN curl -fsSL https://nodejs.org/dist/v22.23.2/node-v22.23.2-linux-arm64.tar.xz -o /tmp/node.tar.xz \13 && echo "fff4078c5def658577f92c88db7db3bc0072924bfb93fe52c1e744a54e94abb8 /tmp/node.tar.xz" | sha256sum -c - \14 && mkdir -p /opt/node && tar xJf /tmp/node.tar.xz -C /opt/node --strip-components=1 && rm /tmp/node.tar.xz \15 && ln -s /opt/node/bin/node /opt/node/bin/npm /opt/node/bin/npx /usr/local/bin/16ENV PATH=/opt/node/bin:$PATH1718RUN npm install -g opencode-ai@1.18.23 && npm cache clean --force1920# Everything opencode would otherwise fetch at run time (models.dev catalogue, LSP servers,21# self-update) is disabled. The npm packages it installs on a project's first use are22# warmed here, where the build has network (warm_opencode.sh); start.sh copies them into23# the throwaway HOME. Without this, every run would log a blocked registry.npmjs.org.24ENV OPENCODE_DISABLE_AUTOUPDATE=1 \25 OPENCODE_DISABLE_LSP_DOWNLOAD=1 \26 OPENCODE_DISABLE_MODELS_FETCH=1 \27 OPENCODE_DISABLE_SHARE=128COPY opencode.json /etc/opencode/opencode.json29COPY warm_opencode.sh /tmp/warm_opencode.sh30RUN bash /tmp/warm_opencode.sh && rm /tmp/warm_opencode.sh3132WORKDIR /scratch