[idea] Docker 07/14: llama.cpp in the image
Author: AnishSarkar22Created Oct 1, 2026Updated Oct 1, 2026
Labelsenhancementhelp wantedperformancedesktopdocker
Which part? Desktop app
What would you like?
Step 7 of 14 of #2100: running SurfSense in Docker. Depends on #2106; start once it is merged.
Local chat models in Docker, on the CPU.
Design: Docker proposal, The image
What to change
- Extend
surfsense_local/electron/scripts/fetch-llamacpp.mjswith the Linux CPU builds (bin-ubuntu-x64,bin-ubuntu-arm64) at the pinned build. - A
runtimesstage in the Dockerfile that runs it into/app/runtimes/llamacpp/. - The headless context sets the llama.cpp variables (
SURFSENSE_LOCAL_LLAMACPP_*), so the preset watcher and the fit probe work.
Done when
- Download a curated chat model in the app and chat with it locally.
- Changing the selection restarts llama-server through the preset watcher.
- The fit estimate reports the container's memory.
Scope: code and tests only. Don't edit docs/ or AGENTS.md, except to fix a link this change breaks; the maintainers update the docs when the Docker work ships.
Why would it help?
Each step leaves something that runs, so the Docker image is built and reviewed one piece at a time.
Source: MODSetter/SurfSense