motif64

m64_bb82c60b9d54 / Dockerfile

40 lines, 2.7 KBraw
1# pi coding agent 1.7.0 + Inkling-2-Mini on upstream llama.cpp, one RTX 5090. The same Dockerfile in2# pi17-inkling2mini-iq4nl-5090 and pi17-inkling2mini-pi-adapted-iq4nl-5090, so both capsules share one image. pi 1.7.0 (@earendil-works/pi-coding-agent) is the pi the adapter was trained and evaluated with.3# Base: nvidia/cuda:13.0.0-devel-ubuntu24.04, pinned by digest (as qwen38-flash-next-basalt-5090).4FROM node@sha256:48e4b67d85f87bd551df43704e24d252f56cc5f8e9718841aace50f19948f0f9 AS node56FROM nvidia/cuda@sha256:1e8ac7a54c184a1af8ef2167f28fa98281892a835c981ebcddb1fad04bdd452d78# The agent's tools (as gx10's agent images: git, ripgrep, jq, a C toolchain...), and the build's.9RUN 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 libgomp1 \12    && rm -rf /var/lib/apt/lists/*1314# llama.cpp (ggml-org, MIT) at a pinned master commit that has Inkling 2 (`inkling2_loop`) and LoRA on it15# (the adapter's card converted it at 33aeb17, an ancestor), built for Blackwell sm_120. The build has no GPU:16# it links against the CUDA driver stub, and the container uses the real driver at run time.17WORKDIR /opt/llama.cpp18RUN git init -q . \19    && git fetch -q --depth 1 https://github.com/ggml-org/llama.cpp 616c931e4b6ea7dc8d3f59e2e056d056ffcbd8af \20    && git checkout -q FETCH_HEAD \21    && test "$(git rev-parse HEAD)" = 616c931e4b6ea7dc8d3f59e2e056d056ffcbd8af \22    && ln -sf /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/libcuda.so.1 \23    && cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=120 -DLLAMA_CURL=OFF \24         -DCMAKE_EXE_LINKER_FLAGS="-Wl,-rpath-link,/usr/local/cuda/lib64/stubs" \25    && cmake --build build --target llama-server -j"$(nproc)"2627# Node 22.23.2 from node:22-bookworm-slim, then pi.28COPY --from=node /usr/local/bin/node /usr/local/bin/node29COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules30RUN ln -s ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \31    && ln -s ../lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx \32    && npm install -g --ignore-scripts @earendil-works/pi-coding-agent@1.7.0 && npm cache clean --force33ENV PI_OFFLINE=1 PI_TELEMETRY=03435# Gateway deps (opencode-basalt-5090's pins, Python 3.12).36RUN python3 -m venv /opt/gateway && /opt/gateway/bin/pip install --no-cache-dir \37      fastapi==0.115.14 uvicorn==0.32.1 httpx==0.28.1 \38      starlette==0.46.2 pydantic==2.14.1 pydantic_core==2.50.1 annotated-types==0.8.0 \39      typing_extensions==4.16.0 typing-inspection==0.4.4 anyio==4.15.1 idna==3.20 \40      certifi==2026.10.23 httpcore==1.0.9 h11==0.16.0 click==8.5.0