[PR #596] [MERGED] Fix Issue 590: restore Rollup’s native binary in dockerlite #4689

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/596
Author: @Promansis
Created: 5/9/2026
Status: ✅ Merged
Merged: 5/9/2026
Merged by: @Romuromylus

Base: main ← Head: fix/dockerfile-lite-rollup-rebuild


📝 Commits (3)

  • e7636ca Fix: restore Rollup’s native binary after --ignore-scripts in docker lite
  • 036c933 Update Dockerfile.lite
  • 6c73f41 Merge branch 'main' into fix/dockerfile-lite-rollup-rebuild

📊 Changes

1 file changed (+7 additions, -4 deletions)

View changed files

📝 Dockerfile.lite (+7 -4)

📄 Description

Linked issue

Closes #590

Why this change

  • Dockerfile.lite was skipping Rollup’s native binary install in the builder stage, which caused pnpm build to fail on CPU-only hosts with Cannot find module @rollup/rollup-linux-x64-gnu.

What changed

  • Removed --no-optional from the lite builder install so Rollup’s platform package can be installed.
  • Kept --ignore-scripts in place to avoid the onnxruntime CUDA postinstall.
  • Rebuilt both esbuild and rollup after install.

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

  • Built the lite image successfully with:

    docker build -f Dockerfile.lite -t marinara-engine:lite .
    
    

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)

UI evidence (if applicable)

Summary by CodeRabbit

  • Chores
    • Optimized Lite build process to improve build tooling preparation consistency.

Review Change Stack


🔄 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/596 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 5/9/2026 **Status:** ✅ Merged **Merged:** 5/9/2026 **Merged by:** [@Romuromylus](https://github.com/Romuromylus) **Base:** `main` ← **Head:** `fix/dockerfile-lite-rollup-rebuild` --- ### 📝 Commits (3) - [`e7636ca`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e7636cad4c66565827061c7229547cad5b680508) Fix: restore Rollup’s native binary after --ignore-scripts in docker lite - [`036c933`](https://github.com/Pasta-Devs/Marinara-Engine/commit/036c93308517fbe54561384d6b79513b7bead730) Update Dockerfile.lite - [`6c73f41`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6c73f41e2ce8b0d5ff5cdac1624aede905e10696) Merge branch 'main' into fix/dockerfile-lite-rollup-rebuild ### 📊 Changes **1 file changed** (+7 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile.lite` (+7 -4) </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 #590 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - `Dockerfile.lite` was skipping Rollup’s native binary install in the builder stage, which caused `pnpm build` to fail on CPU-only hosts with `Cannot find module @rollup/rollup-linux-x64-gnu`. ## What changed <!-- List the key changes in this PR --> - Removed `--no-optional` from the lite builder install so Rollup’s platform package can be installed. - Kept `--ignore-scripts` in place to avoid the onnxruntime CUDA postinstall. - Rebuilt both `esbuild` and `rollup` after install. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] 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. --> - Built the lite image successfully with: ```powershell docker build -f Dockerfile.lite -t marinara-engine:lite . ## Docs and release impact - [x] 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) ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Optimized Lite build process to improve build tooling preparation consistency. [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/596) <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <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:50 +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#4689
No description provided.