[PR #572] [MERGED] Fix Lite Docker install on CPU-only hosts #4675

Closed
opened 2026-10-22 04:09:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/572
Author: @cha1latte
Created: 5/8/2026
Status: ✅ Merged
Merged: 5/8/2026
Merged by: @cha1latte

Base: main ← Head: fix/issue-557-lite-cpu-onnxruntime


📝 Commits (1)

  • 52231e7 Fix Lite Docker install on CPU-only hosts

📊 Changes

1 file changed (+6 additions, -16 deletions)

View changed files

📝 Dockerfile.lite (+6 -16)

📄 Description

Linked issue

Closes #557

Why this change

  • Dockerfile.lite advertised local model/runtime removal, but both dependency stages still ran normal pnpm install commands. That allowed onnxruntime-node optional postinstall scripts to run before the later cleanup step, which can fail on CPU-only hosts while trying to download GPU runtime packages.

What changed

  • Install Lite build dependencies with --no-optional --ignore-scripts so optional local-model packages are not installed and their postinstall scripts cannot run.
  • Rebuild only esbuild in the builder stage so the client/server build still has the native bundler package it needs.
  • Remove the runtime-stage cleanup block for onnxruntime/transformers because the production install now skips optional local-model packages up front.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Codex verification: CI=true pnpm install --frozen-lockfile --no-optional --ignore-scripts completed successfully and skipped optional dependencies, matching the new Lite install mode.
  • Codex verification: pnpm check passed locally after the Dockerfile change.
  • Attempted container verification: docker build -f Dockerfile.lite --target builder --progress=plain -t marinara-engine-lite-issue557-builder . could not run because the Docker Desktop Linux engine was not running locally (failed to connect to the docker API at npipe:////./pipe/dockerDesktopLinuxEngine). This does not block the core install-command claim, but the full container build still needs a human/CI environment with Docker available.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

No docs or release metadata changes included.

UI evidence (if applicable)

N/A - Dockerfile-only build fix.


🔄 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/Pasta-Devs/Marinara-Engine/pull/572 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/8/2026 **Status:** ✅ Merged **Merged:** 5/8/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `fix/issue-557-lite-cpu-onnxruntime` --- ### 📝 Commits (1) - [`52231e7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/52231e7f629a68781c07c389806de0db5972ccf1) Fix Lite Docker install on CPU-only hosts ### 📊 Changes **1 file changed** (+6 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile.lite` (+6 -16) </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #557 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - `Dockerfile.lite` advertised local model/runtime removal, but both dependency stages still ran normal `pnpm install` commands. That allowed `onnxruntime-node` optional postinstall scripts to run before the later cleanup step, which can fail on CPU-only hosts while trying to download GPU runtime packages. ## What changed <!-- List the key changes in this PR --> - Install Lite build dependencies with `--no-optional --ignore-scripts` so optional local-model packages are not installed and their postinstall scripts cannot run. - Rebuild only `esbuild` in the builder stage so the client/server build still has the native bundler package it needs. - Remove the runtime-stage cleanup block for onnxruntime/transformers because the production install now skips optional local-model packages up front. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex verification: `CI=true pnpm install --frozen-lockfile --no-optional --ignore-scripts` completed successfully and skipped optional dependencies, matching the new Lite install mode. - Codex verification: `pnpm check` passed locally after the Dockerfile change. - Attempted container verification: `docker build -f Dockerfile.lite --target builder --progress=plain -t marinara-engine-lite-issue557-builder .` could not run because the Docker Desktop Linux engine was not running locally (`failed to connect to the docker API at npipe:////./pipe/dockerDesktopLinuxEngine`). This does not block the core install-command claim, but the full container build still needs a human/CI environment with Docker available. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) No docs or release metadata changes included. ## UI evidence (if applicable) N/A - Dockerfile-only build fix. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:09:41 +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
Pasta-Devs/Marinara-Engine#4675
No description provided.