[PR #185] [MERGED] feat: Add Wolfi Lite container image #4495

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

📋 Pull Request Information

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

Base: main ← Head: feat/wolfi


📝 Commits (3)

  • 4be1de0 feat(lite): Add Wolfi Lite Dockerfile and gate local-only features
  • b25fa78 ci(container): Add workflow to build and publish lite image
  • bfa87a3 docs(install): Document lite container image usage and features

📊 Changes

11 files changed (+362 additions, -14 deletions)

View changed files

➕ .github/workflows/build-container-lite.yml (+163 -0)
➕ Dockerfile.lite (+129 -0)
📝 docs/installation/containers.md (+44 -2)
📝 packages/client/src/App.tsx (+3 -2)
📝 packages/client/src/components/agents/AgentEditor.tsx (+3 -1)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+3 -3)
📝 packages/client/src/components/panels/ConnectionsPanel.tsx (+1 -1)
📝 packages/server/src/app.ts (+7 -4)
📝 packages/server/src/routes/index.ts (+3 -1)
📝 packages/server/src/services/local-embedder.ts (+3 -0)
📝 packages/server/src/services/memory-recall.ts (+3 -0)

📄 Description

This pull request introduces a new "lite" container image variant for Marinara Engine, focused on reducing image size and attack surface by removing heavy native dependencies and features that require them. It includes a new Dockerfile.lite and a dedicated GitHub Actions workflow for building and publishing the lite image. The application code (both server and client) is updated to detect and gracefully disable features not available in the lite build, such as local model hosting, local embedding, and memory recall. Documentation is also updated to describe the lite image, its trade-offs, and usage instructions.

Containerization & Build System:

  • Added a new GitHub Actions workflow (.github/workflows/build-container-lite.yml) to build and publish a multi-arch "lite" container image on versioned release tags, using a minimal Wolfi Linux base and aggressively stripping heavy native dependencies.
  • Introduced Dockerfile.lite, a three-stage build that omits local model hosting, embedding models, and certain native modules, resulting in a significantly smaller image.

Documentation:

  • Updated docs/installation/containers.md to document the lite image, its differences, and how to use or build it, including a feature comparison table and usage notes. [1] [2] [3]

Server-Side Feature Gating:

  • Added detection of the lite mode via the MARINARA_LITE environment variable in server code. Sidecar model routes, local embedding, and memory recall features are disabled or bypassed in lite mode. [1] [2] [3] [4] [5] [6] [7]

Client-Side Feature Gating:

  • The client now checks the VITE_MARINARA_LITE build-time variable and hides or disables UI elements related to local models, local embedding, and memory recall when running in lite mode. [1] [2] [3] [4] [5] [6] [7] [8]

🔄 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/185 **Author:** [@coxde](https://github.com/coxde) **Created:** 4/22/2026 **Status:** ✅ Merged **Merged:** 4/22/2026 **Merged by:** [@coxde](https://github.com/coxde) **Base:** `main` ← **Head:** `feat/wolfi` --- ### 📝 Commits (3) - [`4be1de0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4be1de0f33724d9a194b315c3427cc9b147bf8fe) feat(lite): Add Wolfi Lite Dockerfile and gate local-only features - [`b25fa78`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b25fa78c1d8d52ab7157e4c99148363c5cacb205) ci(container): Add workflow to build and publish lite image - [`bfa87a3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bfa87a345a89374f7f274e4d12c88c60649fe05e) docs(install): Document lite container image usage and features ### 📊 Changes **11 files changed** (+362 additions, -14 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/build-container-lite.yml` (+163 -0) ➕ `Dockerfile.lite` (+129 -0) 📝 `docs/installation/containers.md` (+44 -2) 📝 `packages/client/src/App.tsx` (+3 -2) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+3 -1) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+3 -3) 📝 `packages/client/src/components/panels/ConnectionsPanel.tsx` (+1 -1) 📝 `packages/server/src/app.ts` (+7 -4) 📝 `packages/server/src/routes/index.ts` (+3 -1) 📝 `packages/server/src/services/local-embedder.ts` (+3 -0) 📝 `packages/server/src/services/memory-recall.ts` (+3 -0) </details> ### 📄 Description This pull request introduces a new "lite" container image variant for Marinara Engine, focused on reducing image size and attack surface by removing heavy native dependencies and features that require them. It includes a new `Dockerfile.lite` and a dedicated GitHub Actions workflow for building and publishing the lite image. The application code (both server and client) is updated to detect and gracefully disable features not available in the lite build, such as local model hosting, local embedding, and memory recall. Documentation is also updated to describe the lite image, its trade-offs, and usage instructions. **Containerization & Build System:** * Added a new GitHub Actions workflow (`.github/workflows/build-container-lite.yml`) to build and publish a multi-arch "lite" container image on versioned release tags, using a minimal Wolfi Linux base and aggressively stripping heavy native dependencies. * Introduced `Dockerfile.lite`, a three-stage build that omits local model hosting, embedding models, and certain native modules, resulting in a significantly smaller image. **Documentation:** * Updated `docs/installation/containers.md` to document the lite image, its differences, and how to use or build it, including a feature comparison table and usage notes. [[1]](diffhunk://#diff-507b48ca8b05fb1099599fec6971fa984ed1a3e8aa2d7665ee1233ccb6d64322L3-R5) [[2]](diffhunk://#diff-507b48ca8b05fb1099599fec6971fa984ed1a3e8aa2d7665ee1233ccb6d64322L23-R25) [[3]](diffhunk://#diff-507b48ca8b05fb1099599fec6971fa984ed1a3e8aa2d7665ee1233ccb6d64322R54-R93) **Server-Side Feature Gating:** * Added detection of the lite mode via the `MARINARA_LITE` environment variable in server code. Sidecar model routes, local embedding, and memory recall features are disabled or bypassed in lite mode. [[1]](diffhunk://#diff-b4bf798ca8820447b50fa3dd7cb2ab33ba486b016686ce4f98d28cb3df65b0aeR34) [[2]](diffhunk://#diff-b4bf798ca8820447b50fa3dd7cb2ab33ba486b016686ce4f98d28cb3df65b0aeL103-R109) [[3]](diffhunk://#diff-1dca9465f61595dd08b9d1f48ffb2cff431c9e55a4516ddc6275e9628d595b0eR90-R93) [[4]](diffhunk://#diff-b97cff79b69bf0696e1ff8ba2942a197948cefe9d3a9c81a4b86558f1953e155R18) [[5]](diffhunk://#diff-b97cff79b69bf0696e1ff8ba2942a197948cefe9d3a9c81a4b86558f1953e155R31) [[6]](diffhunk://#diff-b97cff79b69bf0696e1ff8ba2942a197948cefe9d3a9c81a4b86558f1953e155R100) [[7]](diffhunk://#diff-180993a383c2b5769da9370fafc6f79f3459116cd568b07e14b957679598ff7cR12) **Client-Side Feature Gating:** * The client now checks the `VITE_MARINARA_LITE` build-time variable and hides or disables UI elements related to local models, local embedding, and memory recall when running in lite mode. [[1]](diffhunk://#diff-ec2dc392bcf26c2a7c1a34631db8a5f5d220596d2e986f8959acaa22494fcb78R45) [[2]](diffhunk://#diff-ec2dc392bcf26c2a7c1a34631db8a5f5d220596d2e986f8959acaa22494fcb78L58-R59) [[3]](diffhunk://#diff-ec2dc392bcf26c2a7c1a34631db8a5f5d220596d2e986f8959acaa22494fcb78L190-R191) [[4]](diffhunk://#diff-0bba2d0e2b9e3d9b5da905af1aef4486a5ab9589e254e013882899ace458ddf9R567-R569) [[5]](diffhunk://#diff-686dcec1921d20b6e91eef19d163dd39c6c6ba34f24c7ae753f3e0430823eeb8L2408-R2408) [[6]](diffhunk://#diff-686dcec1921d20b6e91eef19d163dd39c6c6ba34f24c7ae753f3e0430823eeb8L2865-R2865) [[7]](diffhunk://#diff-686dcec1921d20b6e91eef19d163dd39c6c6ba34f24c7ae753f3e0430823eeb8L3135-R3135) [[8]](diffhunk://#diff-264a3bb94168d1e2dda2790e996da2e830cde1b4f37e7004c22a18c91d1bbb2dL279-R279) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:08:07 +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#4495
No description provided.