#2112·SurfSense

[idea] Docker 12/14: CUDA image (-cuda) on amd64

Author: AnishSarkar22Created Oct 1, 2026Updated Oct 1, 2026
Labelsenhancementhelp wantedperformancedesktopdocker

Which part? Desktop app

What would you like?

Step 12 of 14 of #2100: running SurfSense in Docker. Depends on #2111; start once it is merged.

Chat on an NVIDIA GPU, with the first CUDA variant.

Design: GPU images, Variants

What to change

  • ARG VARIANT=cpu|cuda in the Dockerfile; the cuda runtimes stage downloads llama.cpp's bin-ubuntu-cuda-12.8-x64 and its cudart archive. Only one ggml backend per image.
  • docker/local/docker-compose.gpu.yml with the NVIDIA device reservation.
  • docker-local.yml builds and publishes -cuda for amd64.

Done when

  • On an NVIDIA machine with the Container Toolkit, the fit estimate shows the card's VRAM and a local chat runs on the GPU.
  • CI publishes the -cuda tag.

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.