[PR #375] [CLOSED] Add Docker support for CPU-only container hosting #365

Closed
opened 2026-11-07 17:43:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Physton/sd-webui-prompt-all-in-one/pull/375
Author: @yuval2508
Created: 2/19/2026
Status: ❌ Closed

Base: main ← Head: main


📝 Commits (1)

  • 4e7b2cb Add Docker support for CPU-only container hosting

📊 Changes

6 files changed (+383 additions, -0 deletions)

View changed files

➕ .dockerignore (+9 -0)
➕ Dockerfile (+99 -0)
➕ docker-compose.yml (+28 -0)
➕ docker/entrypoint.sh (+41 -0)
➕ docker/patch_launch_utils.py (+46 -0)
➕ docker/patch_ldm.py (+160 -0)

📄 Description

Summary

  • Adds a complete Docker environment to run the extension inside AUTOMATIC1111 stable-diffusion-webui on CPU (no GPU required)
  • Patches CompVis stable-diffusion v1 clone to add missing Stability-AI v2 stubs that AUTOMATIC1111 v1.10.x expects
  • Supports running the prompt extension UI without a real SD checkpoint

Files

  • Dockerfile — builds image with PyTorch CPU, extension deps, pre-cloned repos, pre-installed requirements
  • docker-compose.yml — maps port 7860, volumes for models/outputs/storage
  • docker/entrypoint.sh — sets PYTHONPATH and launches WebUI with CPU flags
  • docker/patch_ldm.py — patches ldm package with v2 stubs (midas, AddMiDaS, LatentDepth2ImageDiffusion, ATTENTION_MODES, FrozenOpenCLIPEmbedder)
  • docker/patch_launch_utils.py — makes git_clone failures non-fatal
  • .dockerignore — excludes node_modules, pycache, git history

Test plan

  • docker compose up --build completes successfully
  • WebUI is accessible at http://localhost:7860
  • Extension background API service starts (sd-webui-prompt-all-in-one background API service started successfully)

🤖 Generated with Claude Code


🔄 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/Physton/sd-webui-prompt-all-in-one/pull/375 **Author:** [@yuval2508](https://github.com/yuval2508) **Created:** 2/19/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`4e7b2cb`](https://github.com/Physton/sd-webui-prompt-all-in-one/commit/4e7b2cb28766b562f795c5894fecf477033d4084) Add Docker support for CPU-only container hosting ### 📊 Changes **6 files changed** (+383 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `.dockerignore` (+9 -0) ➕ `Dockerfile` (+99 -0) ➕ `docker-compose.yml` (+28 -0) ➕ `docker/entrypoint.sh` (+41 -0) ➕ `docker/patch_launch_utils.py` (+46 -0) ➕ `docker/patch_ldm.py` (+160 -0) </details> ### 📄 Description ## Summary - Adds a complete Docker environment to run the extension inside AUTOMATIC1111 stable-diffusion-webui on CPU (no GPU required) - Patches CompVis stable-diffusion v1 clone to add missing Stability-AI v2 stubs that AUTOMATIC1111 v1.10.x expects - Supports running the prompt extension UI without a real SD checkpoint ## Files - `Dockerfile` — builds image with PyTorch CPU, extension deps, pre-cloned repos, pre-installed requirements - `docker-compose.yml` — maps port 7860, volumes for models/outputs/storage - `docker/entrypoint.sh` — sets PYTHONPATH and launches WebUI with CPU flags - `docker/patch_ldm.py` — patches ldm package with v2 stubs (midas, AddMiDaS, LatentDepth2ImageDiffusion, ATTENTION_MODES, FrozenOpenCLIPEmbedder) - `docker/patch_launch_utils.py` — makes git_clone failures non-fatal - `.dockerignore` — excludes node_modules, pycache, git history ## Test plan - [ ] `docker compose up --build` completes successfully - [ ] WebUI is accessible at http://localhost:7860 - [ ] Extension background API service starts (`sd-webui-prompt-all-in-one background API service started successfully`) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:43:48 +07:00
Sign in to join this conversation.
No labels
pull-request
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
Physton/sd-webui-prompt-all-in-one#365
No description provided.