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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/13282
Author: @inakiAramburu
Created: 4/28/2025
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (1)
ff3d947Modify 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 buildcommand by settingNODE_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 memoryThis 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.