feat: add :cpu tag for amd64 CPU-only image
Introduces a VARIANT=gpu|cpu build arg to the Dockerfile. The cpu variant uses ubuntu:22.04 (no CUDA base), installs torch+cpu and onnxruntime (no GPU deps) via a separate pyproject-cpu.toml / uv-cpu.lock, and is published as :cpu (dev-cpu on the dev branch) via a new build-cpu CI job. Saves ~2 GB over the default GPU image. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -111,12 +111,19 @@ If the embedding model is unavailable, the tool falls back to **time spread**: e
|
||||
|
||||
## Running in Docker
|
||||
|
||||
### Image Tags
|
||||
|
||||
| Tag | Arch | GPU | Notes |
|
||||
| :-- | :-- | :-- | :-- |
|
||||
| `:latest` | amd64 + arm64 | CUDA 13.3 (amd64) | Requires NVIDIA Container Toolkit on amd64 |
|
||||
| `:cpu` | amd64 | None | ~2 GB smaller; use if you have no NVIDIA GPU |
|
||||
|
||||
### Quick Start
|
||||
|
||||
```yaml
|
||||
services:
|
||||
winnow:
|
||||
image: ghcr.io/sudolulo/winnow:latest
|
||||
image: ghcr.io/sudolulo/winnow:latest # or :cpu for CPU-only amd64
|
||||
environment:
|
||||
- IMMICH_URL=http://192.168.1.10:2283
|
||||
- API_KEY=your-immich-api-key
|
||||
@@ -136,6 +143,8 @@ services:
|
||||
capabilities: [gpu]
|
||||
```
|
||||
|
||||
> **CPU users (`:cpu` tag):** remove the `deploy.resources` block — no NVIDIA runtime needed.
|
||||
|
||||
See [compose.yml](compose.yml) for the full annotated example.
|
||||
|
||||
### Scheduling Behaviour
|
||||
|
||||
Reference in New Issue
Block a user