[PR #62] [MERGED] chore(container): uses cache mounts for pnpm store to reduce image size #4432

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/62
Author: @coxde
Created: 4/5/2026
Status: ✅ Merged
Merged: 4/5/2026
Merged by: @SpicyMarinara

Base: main ← Head: image-optimize


📝 Commits (2)

  • a614e1f chore(container): uses cache mounts for pnpm store to reduce image size
  • 8ecb77a Merge branch 'main' into image-optimize

📊 Changes

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

View changed files

📝 Dockerfile (+6 -2)

📄 Description

Summary

  • Uses cache mounts for pnpm store to prevent cache bloat

Savings

Before After Savings
1.65 GB 1.25 GB 400 MB (24%)

Testing

  • Built and tested locally
  • No runtime dependencies affected

Notes

I also found out a WASM-only image variant that removes onnxruntime-node (falling back to onnxruntime-web). This saves an additional ~400 MB. However, native modules provide much better performance benefits so I didn't do that, just note here for reference. There are also multiple versions of onnxruntime-node deps exist, need to take a look.


🔄 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/62 **Author:** [@coxde](https://github.com/coxde) **Created:** 4/5/2026 **Status:** ✅ Merged **Merged:** 4/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `image-optimize` --- ### 📝 Commits (2) - [`a614e1f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a614e1f79143a23d04237e6fb36bc1b4da9a7e0b) chore(container): uses cache mounts for pnpm store to reduce image size - [`8ecb77a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8ecb77aa53a67d24371edc7da80b6ab4d6619b5f) Merge branch 'main' into image-optimize ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+6 -2) </details> ### 📄 Description ## Summary - Uses cache mounts for pnpm store to prevent cache bloat ## Savings | Before | After | Savings | |--------|-------|---------| | 1.65 GB | 1.25 GB | 400 MB (24%) | ## Testing - Built and tested locally - No runtime dependencies affected ## Notes I also found out a WASM-only image variant that removes `onnxruntime-node` (falling back to onnxruntime-web). This saves an additional ~400 MB. However, native modules provide much better performance benefits so I didn't do that, just note here for reference. There are also multiple versions of `onnxruntime-node` deps exist, need to take a look. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:07:33 +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#4432
No description provided.