[PR #96] [CLOSED] Add docker build #2453

Closed
opened 2026-11-04 02:00:15 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/96
Author: @djmaze
Created: 9/28/2026
Status: ❌ Closed

Base: main ← Head: docker


📝 Commits (4)

  • e907dac Docker: the engine is compiled during docker build, so the first start only downloads the model
  • 37580f9 Docker: handle SIGTERM so docker stop ends the container cleanly
  • c72b121 Docker: gate the execv in setup.start behind STRATA_EXECV
  • ed70a77 Docker: KV, GPUS/GPU/LAYER_SPLIT and LOW_RAM as env vars

📊 Changes

6 files changed (+263 additions, -3 deletions)

View changed files

➕ .dockerignore (+27 -0)
➕ Dockerfile (+116 -0)
📝 README.md (+32 -0)
➕ docker-entrypoint.sh (+65 -0)
📝 serve/server.py (+18 -3)
📝 setup.py (+5 -0)

📄 Description

The engine is compiled during docker build, so the first start only downloads the model.

docker build has no GPU, so the CUDA architectures are fixed by an ARG (80;86;89;120) instead of read from nvidia-smi; the engine is a fat binary with a cubin per arch. BUILD.json is written with source=local and the source hash, so setup reuses it instead of recompiling.

The entry point keeps the install config on the volume and selects it by family and model, so switching between models already set up needs no setup pass. REINSTALL stays for settings recorded inside a config.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/96 **Author:** [@djmaze](https://github.com/djmaze) **Created:** 9/28/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `docker` --- ### 📝 Commits (4) - [`e907dac`](https://github.com/Niko1221/Strata/commit/e907dac4b5dba8ba4ef295ccb6eeea0267dfc67b) Docker: the engine is compiled during docker build, so the first start only downloads the model - [`37580f9`](https://github.com/Niko1221/Strata/commit/37580f995603c31d729643934dd755a117f98394) Docker: handle SIGTERM so docker stop ends the container cleanly - [`c72b121`](https://github.com/Niko1221/Strata/commit/c72b1213ae0967c35c05e800b07a78681e5b574f) Docker: gate the execv in setup.start behind STRATA_EXECV - [`ed70a77`](https://github.com/Niko1221/Strata/commit/ed70a77e40ca12bbcddc53da491709408ddc723f) Docker: KV, GPUS/GPU/LAYER_SPLIT and LOW_RAM as env vars ### 📊 Changes **6 files changed** (+263 additions, -3 deletions) <details> <summary>View changed files</summary> ➕ `.dockerignore` (+27 -0) ➕ `Dockerfile` (+116 -0) 📝 `README.md` (+32 -0) ➕ `docker-entrypoint.sh` (+65 -0) 📝 `serve/server.py` (+18 -3) 📝 `setup.py` (+5 -0) </details> ### 📄 Description The engine is compiled during docker build, so the first start only downloads the model. docker build has no GPU, so the CUDA architectures are fixed by an ARG (80;86;89;120) instead of read from nvidia-smi; the engine is a fat binary with a cubin per arch. BUILD.json is written with source=local and the source hash, so setup reuses it instead of recompiling. The entry point keeps the install config on the volume and selects it by family and model, so switching between models already set up needs no setup pass. REINSTALL stays for settings recorded inside a config. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:00:15 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2453
No description provided.