# pi coding agent 0.73.1 + Inkling-2-Mini on upstream llama.cpp, one RTX 5090. The same Dockerfile in # pi-inkling2mini-iq4nl-5090 and pi-inkling2mini-pi-adapted-iq4nl-5090, so both capsules share one image. # Base: nvidia/cuda:13.0.0-devel-ubuntu24.04, pinned by digest (as qwen38-flash-next-basalt-5090). FROM node@sha256:48e4b67d85f87bd551df43704e24d252f56cc5f8e9718841aace50f19948f0f9 AS node FROM nvidia/cuda@sha256:1e8ac7a54c184a1af8ef2167f28fa98281892a835c981ebcddb1fad04bdd452d # The agent's tools (as gx10's agent images: git, ripgrep, jq, a C toolchain...), and the build's. RUN apt-get update -qq && apt-get install -y --no-install-recommends \ build-essential cmake git curl ca-certificates python3 python3-venv \ ripgrep jq procps less file unzip xz-utils libgomp1 \ && rm -rf /var/lib/apt/lists/* # llama.cpp (ggml-org, MIT) at a pinned master commit that has Inkling 2 (`inkling2_loop`) and LoRA on it # (the adapter's card converted it at 33aeb17, an ancestor), built for Blackwell sm_120. The build has no GPU: # it links against the CUDA driver stub, and the container uses the real driver at run time. WORKDIR /opt/llama.cpp RUN git init -q . \ && git fetch -q --depth 1 https://github.com/ggml-org/llama.cpp 616c931e4b6ea7dc8d3f59e2e056d056ffcbd8af \ && git checkout -q FETCH_HEAD \ && test "$(git rev-parse HEAD)" = 616c931e4b6ea7dc8d3f59e2e056d056ffcbd8af \ && ln -sf /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/libcuda.so.1 \ && cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=120 -DLLAMA_CURL=OFF \ -DCMAKE_EXE_LINKER_FLAGS="-Wl,-rpath-link,/usr/local/cuda/lib64/stubs" \ && cmake --build build --target llama-server -j"$(nproc)" # Node 22.23.2 from node:22-bookworm-slim, then pi. COPY --from=node /usr/local/bin/node /usr/local/bin/node COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules RUN ln -s ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \ && ln -s ../lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx \ && npm install -g @mariozechner/pi-coding-agent@0.73.1 && npm cache clean --force ENV PI_OFFLINE=1 PI_TELEMETRY=0 # Gateway deps (opencode-basalt-5090's pins, Python 3.12). RUN python3 -m venv /opt/gateway && /opt/gateway/bin/pip install --no-cache-dir \ fastapi==0.115.14 uvicorn==0.32.1 httpx==0.28.1 \ starlette==0.46.2 pydantic==2.14.1 pydantic_core==2.50.1 annotated-types==0.8.0 \ typing_extensions==4.16.0 typing-inspection==0.4.4 anyio==4.15.1 idna==3.20 \ certifi==2026.10.23 httpcore==1.0.9 h11==0.16.0 click==8.5.0