m64_cd4f22370933 / Dockerfile
39 lines, 2.4 KBraw
1# pi coding agent 1.7.0 + Basalt (jesdga95/basalt, branch qwen4-35b @ 4dbca9ce, qwen4exp), one RTX 5090. The same Dockerfile in2# pi17-basalt-qwen4-35b-a3b-nvfp4-5090 and pi17-basalt-qwen38fn-iq3s-5090: Basalt's qwen4exp architecture serves both3# Qwen4-35B-A3B and Qwen3.8-Flash-Next, so the two capsules share one engine build.4# Base: nvidia/cuda:13.1.1-devel-ubuntu24.04, pinned by digest (the pack author's CUDA 13.1).5FROM node@sha256:48e4b67d85f87bd551df43704e24d252f56cc5f8e9718841aace50f19948f0f9 AS node67FROM nvidia/cuda@sha256:9cf8694a27722418a1f175d90f85d5afb5a728fd4a9907d7f0565efecfa14d3289RUN apt-get update -qq && apt-get install -y --no-install-recommends \10 build-essential cmake git curl ca-certificates python3 python3-venv \11 ripgrep jq procps less file unzip xz-utils \12 && rm -rf /var/lib/apt/lists/*1314# Basalt at the commit with the Qwen4-35B-A3B shape and the KV/verify correctness fixes (4dbca9ce, not 53aa09a6),15# its server venv from the commit's requirements.txt. The build has no GPU: it compiles for sm_120 without a device.16WORKDIR /opt/basalt17RUN git init -q . \18 && git fetch -q --depth 1 https://github.com/jesdga95/basalt 4dbca9ceb6e9578f4a7b2d20bc2d9c5a25036694 \19 && git checkout -q FETCH_HEAD \20 && test "$(git rev-parse HEAD)" = 4dbca9ceb6e9578f4a7b2d20bc2d9c5a25036694 \21 && cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DBASALT_MODELS=qwen4exp \22 && cmake --build build -j"$(nproc)" \23 && python3 -m venv .venv && .venv/bin/pip install --no-cache-dir -r requirements.txt24ENV PATH=/opt/basalt/bin:$PATH2526# Node 22.23.2 from node:22-bookworm-slim, then pi 1.7.0.27COPY --from=node /usr/local/bin/node /usr/local/bin/node28COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules29RUN ln -s ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \30 && ln -s ../lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx \31 && npm install -g --ignore-scripts @earendil-works/pi-coding-agent@1.7.0 && npm cache clean --force32ENV PI_OFFLINE=1 PI_TELEMETRY=03334# Gateway deps (opencode-basalt-5090's pins, Python 3.12).35RUN python3 -m venv /opt/gateway && /opt/gateway/bin/pip install --no-cache-dir \36 fastapi==0.115.14 uvicorn==0.32.1 httpx==0.28.1 \37 starlette==0.46.2 pydantic==2.14.1 pydantic_core==2.50.1 annotated-types==0.8.0 \38 typing_extensions==4.16.0 typing-inspection==0.4.4 anyio==4.15.1 idna==3.20 \39 certifi==2026.10.23 httpcore==1.0.9 h11==0.16.0 click==8.5.0