[PR #13282] [CLOSED] **fix**: Fix build failure due to Node.js memory limit #78018

Closed
opened 2026-05-13 11:37:26 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/13282
Author: @inakiAramburu
Created: 4/28/2025
Status: Closed

Base: devHead: dev


📝 Commits (1)

  • ff3d947 Modify build command to set NODE_OPTIONS='--max-old-space-size=4096' and prevent build failures due to memory limits

📊 Changes

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

View changed files

📝 Dockerfile (+2 -1)

📄 Description

This pull request fixes an issue that occurred when building the project locally, where the Node.js heap memory limit was exceeded, causing the build to fail with an "out of memory" error.

Changes made:

  • Updated the Dockerfile to modify the npm run build command by setting NODE_OPTIONS="--max-old-space-size=4096" before running the build.

  • This change increases the available memory during the build to 4GB, preventing allocation failures and fatal heap limit errors.

Context: Previously, running npm run build inside the Docker image resulted in fatal errors like:

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

This fix ensures that the build process can successfully complete without running out of memory.


🔄 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/open-webui/open-webui/pull/13282 **Author:** [@inakiAramburu](https://github.com/inakiAramburu) **Created:** 4/28/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (1) - [`ff3d947`](https://github.com/open-webui/open-webui/commit/ff3d947f80e14283601148e5d2730a5889b2705a) Modify build command to set NODE_OPTIONS='--max-old-space-size=4096' and prevent build failures due to memory limits ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+2 -1) </details> ### 📄 Description This pull request fixes an issue that occurred when building the project locally, where the Node.js heap memory limit was exceeded, causing the build to fail with an "out of memory" error. **Changes made:** - Updated the Dockerfile to modify the `npm run build` command by setting `NODE_OPTIONS="--max-old-space-size=4096" `before running the build. - This change increases the available memory during the build to 4GB, preventing allocation failures and fatal heap limit errors. **Context**: Previously, running npm run build inside the Docker image resulted in fatal errors like: `FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory` This fix ensures that the build process can successfully complete without running out of memory. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-13 11:37:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#78018