fix(docker): refresh CUDA/ROCm images, restore share assets, and update entrypoint
Draft
GR
2d ago+308+308+012345678901234567890123456789-284-284-012345678901234567890123456789
Summary
Audited the Docker build, runtime images, entrypoint, CI workflow, and local tooling against main (a0a071cb) and fixed the build break, missing runtime assets, model-handling gaps, and legacy bloat.
Fixes
- CUDA 12 build break: add missing
#include <cstddef>toserver/src/common/concurrency/paged_kv_pool.h(broke GCC 11.4 inDocker prebuilds→cuda12). - Missing
server/share/assets in both runtime images: builder prune previously deletedbuild/share/(status.html,deepseek41/*), runtime never copied them, and.dockerignore's**/*.binexcludedserver/share/deepseek41/router_bias_lucebox_40x384_f32.bin. Restoresserver/share/, adds!server/share/**/*.bin, symlinksbuild/share -> ../share, and asserts all files exist during image build. server/scripts/entrypoint.sh+server/test/test_entrypoint.sh:- Support
deepseek41(prefer 4.1 DSpark draft, drop draft on paged serving, skip--ddtree). - Support
inkling2/inkling2_loop(mtp.safetensorsDSpark draft, never pick.gguf, skip--ddtree). - Support
qwen3.8draft pattern ahead of generic*dflash*, preventqwen4expfrom picking unrelated DFlash drafts, skip auto-draft forbailingmoe3/qwen3. - Guard
--ddtreeonPAGED=0andmodel_capabilities.hDDTree-capable architectures (fixes concurrent Qwen 3.5/3.6/3.8--paged-attention+ DFlash2, whichfeature_gate.cpppreviously rejected with--paged-attention does not support DDTree). - Add
LUCE_KV_CACHE_DIRsupport and/opt/lucebox-hub/kv-cacheVOLUME(mode1777) so the on-disk KV session cache stays off the container overlay and works under non-root-u uid:gid.
- Support
Image & Build Refresh
- Drop Python /
uv/ PyTorchcu128(~3+ GB) from both runtime images (including NVIDIAcu128PyTorch that was being installed into:rocm) — runtime images only exec native C++luce_server. - Ship
luce_serveronly: droptest_dflashandtest_server_unit(each duplicated staticlibluce_common.afat-binary kernels) and configure with-DLUCE_TESTS=OFFwithout copyingserver/test. - Align
cuda12withci.ymland:rocm: bumpUBUNTU_VERSIONfrom22.04to24.04(GCC 13) and pass-DLUCE_FA_ALL_QUANTS=OFF(keeps all symmetric KV quants, ~3× faster CUDA builds). - ROCm linking: pass
-fuse-ld=lldwhen ROCm'sld.lldis present inDockerfile.rocm. - CI / tooling / docs: update
.github/workflows/docker.ymlpath triggers (server/share/**,share/model_cards/**,server/hip_compat/**,server/scripts/entrypoint.sh; dropserver/test/**,pyproject.toml,uv.lock), addrocmsupport toscripts/build_image.sh, and updateREADME.mdDocker docs.
Follow-up (intentionally left out of this PR)
- Slimming
Dockerfile.rocmruntime offrocm/dev-ubuntu-24.04toubuntu:24.04+ ROCm runtime packages (best tested directly on an AMD host in a dedicated PR).
Validation
bash server/test/test_entrypoint.sh server/scripts/entrypoint.sh→ PASSbash -nonentrypoint.sh,test_entrypoint.sh,build_image.sh→ PASSc++ -std=gnu++17 -fsyntax-onlyonpaged_kv_pool.h→ PASS.githooks/pre-push+ YAML validation on.github/workflows/docker.yml→ PASS- Full
cuda12+rocmimage builds will be verified by theDocker prebuildsPR workflow.