[GH-ISSUE #590] [Issue]: Dockerfile.lite build fails after #572: @rollup/rollup-linux-x64-gnu missing due to --ignore-scripts #273

Closed
opened 2026-10-20 17:27:01 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Gunterlie on GitHub (May 9, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/590

Originally assigned to: @Promansis on GitHub.

[Bug]
Body:

Summary

PR #572 fixed the onnxruntime-node CUDA issue by adding --ignore-scripts to
the builder stage pnpm install. However, --ignore-scripts also skips rollup's
postinstall, which is required for the client build — causing pnpm build to fail
with a missing native module error.

Expected behavior

Dockerfile.lite builds successfully end-to-end on CPU-only hosts after PR #572.

Actual behavior

Build fails at Dockerfile.lite:47 (RUN pnpm build) with:

Error: Cannot find module @rollup/rollup-linux-x64-gnu

The client build cannot run because rollup's native binary was never installed.

Steps to reproduce

  1. Clone the repository on a CPU-only host after PR #572 was merged
  2. Run docker build -f Dockerfile.lite -t marinara-engine:lite .
  3. pnpm install succeeds (onnxruntime fixed ✅)
  4. Build fails at pnpm build — rollup native module missing

Environment

  • Marinara Engine version: 1.5.8 (main, post #572)
  • Install type: docker
  • OS + version: Debian 12 (LXC on Proxmox)
  • Hardware: Intel J5005 (no GPU)

Logs, screenshots, or video

Dockerfile.lite:47
--------------------
  45 |     # Build everything: shared → server + client in parallel
  46 |     ENV NODE_OPTIONS="--max-old-space-size=4096"
  47 | >>> RUN pnpm build
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c pnpm build"
did not complete successfully: exit code: 1

packages/client build: Error: Cannot find module @rollup/rollup-linux-x64-gnu

Additional context

Root cause: --ignore-scripts skips postinstall for all packages, not just
onnxruntime. PR #572 added pnpm rebuild esbuild to recover esbuild, but rollup
also needs to be rebuilt.

Fix: Change the rebuild line in Dockerfile.lite from:

pnpm rebuild esbuild

to:

pnpm rebuild esbuild rollup

Related: #572, closes the remaining build failure on CPU-only hosts.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Gunterlie on GitHub (May 9, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/590 Originally assigned to: @Promansis on GitHub. [Bug] **Body:** ## Summary PR #572 fixed the `onnxruntime-node` CUDA issue by adding `--ignore-scripts` to the builder stage `pnpm install`. However, `--ignore-scripts` also skips rollup's postinstall, which is required for the client build — causing `pnpm build` to fail with a missing native module error. ## Expected behavior `Dockerfile.lite` builds successfully end-to-end on CPU-only hosts after PR #572. ## Actual behavior Build fails at Dockerfile.lite:47 (`RUN pnpm build`) with: ``` Error: Cannot find module @rollup/rollup-linux-x64-gnu ``` The client build cannot run because rollup's native binary was never installed. ## Steps to reproduce 1. Clone the repository on a CPU-only host after PR #572 was merged 2. Run `docker build -f Dockerfile.lite -t marinara-engine:lite .` 3. pnpm install succeeds (onnxruntime fixed ✅) 4. Build fails at `pnpm build` — rollup native module missing ## Environment - Marinara Engine version: 1.5.8 (main, post #572) - Install type: docker - OS + version: Debian 12 (LXC on Proxmox) - Hardware: Intel J5005 (no GPU) ## Logs, screenshots, or video ``` Dockerfile.lite:47 -------------------- 45 | # Build everything: shared → server + client in parallel 46 | ENV NODE_OPTIONS="--max-old-space-size=4096" 47 | >>> RUN pnpm build -------------------- ERROR: failed to build: failed to solve: process "/bin/sh -c pnpm build" did not complete successfully: exit code: 1 packages/client build: Error: Cannot find module @rollup/rollup-linux-x64-gnu ``` ## Additional context **Root cause:** `--ignore-scripts` skips postinstall for all packages, not just onnxruntime. PR #572 added `pnpm rebuild esbuild` to recover esbuild, but rollup also needs to be rebuilt. **Fix:** Change the rebuild line in Dockerfile.lite from: ```dockerfile pnpm rebuild esbuild ``` to: ```dockerfile pnpm rebuild esbuild rollup ``` Related: #572, closes the remaining build failure on CPU-only hosts. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:27:01 +07:00
  • closed this issue
  • added the
    bug
    label
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#273
No description provided.