m64_e761fc6b57c3 / Dockerfile
31 lines, 1.9 KBraw
1# opencode-qwen4-35b-fp8-gb10: opencode 1.18.23 driving Qwen4-35B-A3B FP8 served by vLLM in the same container.2# Made from opencode-inkling2mini-gb10 (the same harness install); the vLLM part is the qwen4-35b-a3b-fp8-gb10 capsule's:3# Base: vllm/vllm-openai:qwen4, the image vLLM's Qwen4-35B-A3B recipe names, pinned by its multi-arch index digest (2026-12-04).4FROM vllm/vllm-openai@sha256:63a160daa7b2c7eac713d2097c6d84d52d4ccf9a935788acdd610a563d39d28656RUN apt-get update -qq && apt-get install -y --no-install-recommends \7 ca-certificates git ripgrep jq curl xz-utils unzip file less procps build-essential python3-venv \8 && rm -rf /var/lib/apt/lists/*910# Node 22.23.2, official arm64 build, checked against nodejs.org's SHASUMS256.txt.11RUN curl -fsSL https://nodejs.org/dist/v22.23.2/node-v22.23.2-linux-arm64.tar.xz -o /tmp/node.tar.xz \12 && echo "fff4078c5def658577f92c88db7db3bc0072924bfb93fe52c1e744a54e94abb8 /tmp/node.tar.xz" | sha256sum -c - \13 && mkdir -p /opt/node && tar xJf /tmp/node.tar.xz -C /opt/node --strip-components=1 && rm /tmp/node.tar.xz \14 && ln -s /opt/node/bin/node /opt/node/bin/npm /opt/node/bin/npx /usr/local/bin/15ENV PATH=/opt/node/bin:$PATH1617RUN npm install -g opencode-ai@1.18.23 && npm cache clean --force1819# Everything opencode would otherwise fetch at run time (models.dev catalogue, LSP servers,20# self-update) is disabled. The npm packages it installs on a project's first use are21# warmed here, where the build has network (warm_opencode.sh); start.sh copies them into22# the throwaway HOME. Without this, every run would log a blocked registry.npmjs.org.23ENV OPENCODE_DISABLE_AUTOUPDATE=1 \24 OPENCODE_DISABLE_LSP_DOWNLOAD=1 \25 OPENCODE_DISABLE_MODELS_FETCH=1 \26 OPENCODE_DISABLE_SHARE=127COPY opencode.json /etc/opencode/opencode.json28COPY warm_opencode.sh /tmp/warm_opencode.sh29RUN bash /tmp/warm_opencode.sh && rm /tmp/warm_opencode.sh3031WORKDIR /scratch