[GH-ISSUE #621] [Issue]: Sprite generation unavailable on Lite Docker builds: sharp native module not loaded due to --ignore-scripts #289

Closed
opened 2026-10-20 17:27:12 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Sprite generation is broken on Lite Docker builds. The sharp native module
fails to load because Dockerfile.lite uses --ignore-scripts to prevent
onnxruntime CUDA downloads, but this also blocks sharp's postinstall script
which installs its native binary.

Expected behavior

Sprite generation works on Lite Docker builds. sharp is not a local-model
dependency and should be fully functional in the Lite image.

Actual behavior

The following warning appears on startup and sprite generation is disabled:

Image processing is unavailable on this platform
(native 'sharp' module could not be loaded).
Sprite generation and background removal are disabled.

Steps to reproduce

  1. Build Dockerfile.lite on any host: docker build -f Dockerfile.lite -t marinara-engine:lite .
  2. Start the container
  3. Navigate to any character and attempt sprite generation
  4. Feature is disabled — sharp native module not loaded

Environment

  • Marinara Engine version: latest main (post b3fce6c)
  • Install type: docker (lite image, self-built)
  • OS + version: Debian 12 (LXC on Proxmox)
  • Hardware: Intel J5005 (CPU-only)

Logs, screenshots, or video

Image processing is unavailable on this platform
(native 'sharp' module could not be loaded).
Sprite generation and background removal are disabled.

Additional context

Root cause: Dockerfile.lite currently rebuilds esbuild and rollup
after --ignore-scripts (via PRs #572 and #596), but sharp was not included.
Commit b3fce6c introduced sprite generation which now depends on sharp for
image processing — making this a regression on Lite builds.

Fix: Add sharp to the rebuild line in Dockerfile.lite:

pnpm rebuild esbuild rollup sharp

Related: #572, #596

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/621 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Sprite generation is broken on Lite Docker builds. The `sharp` native module fails to load because `Dockerfile.lite` uses `--ignore-scripts` to prevent onnxruntime CUDA downloads, but this also blocks `sharp`'s postinstall script which installs its native binary. ## Expected behavior Sprite generation works on Lite Docker builds. `sharp` is not a local-model dependency and should be fully functional in the Lite image. ## Actual behavior The following warning appears on startup and sprite generation is disabled: ``` Image processing is unavailable on this platform (native 'sharp' module could not be loaded). Sprite generation and background removal are disabled. ``` ## Steps to reproduce 1. Build Dockerfile.lite on any host: `docker build -f Dockerfile.lite -t marinara-engine:lite .` 2. Start the container 3. Navigate to any character and attempt sprite generation 4. Feature is disabled — sharp native module not loaded ## Environment - Marinara Engine version: latest main (post b3fce6c) - Install type: docker (lite image, self-built) - OS + version: Debian 12 (LXC on Proxmox) - Hardware: Intel J5005 (CPU-only) ## Logs, screenshots, or video ``` Image processing is unavailable on this platform (native 'sharp' module could not be loaded). Sprite generation and background removal are disabled. ``` ## Additional context **Root cause:** `Dockerfile.lite` currently rebuilds `esbuild` and `rollup` after `--ignore-scripts` (via PRs #572 and #596), but `sharp` was not included. Commit b3fce6c introduced sprite generation which now depends on `sharp` for image processing — making this a regression on Lite builds. **Fix:** Add `sharp` to the rebuild line in Dockerfile.lite: ```dockerfile pnpm rebuild esbuild rollup sharp ``` Related: #572, #596 ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:27:12 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (May 10, 2026):

Implemented for v1.5.9. Lite Docker now rebuilds sharp after the scriptless dependency install, alongside esbuild and rollup, so sprite/background image processing can load in Lite images. Added the fix to CHANGELOG.md and validated with pnpm check.

<!-- gh-comment-id:4415005515 --> @SpicyMarinara commented on GitHub (May 10, 2026): Implemented for v1.5.9. Lite Docker now rebuilds `sharp` after the scriptless dependency install, alongside `esbuild` and `rollup`, so sprite/background image processing can load in Lite images. Added the fix to CHANGELOG.md and validated with `pnpm check`.
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#289
No description provided.