Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
Target branch: Please verify that the pull request targets the dev branch.
Description: Provide a concise description of the changes made in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
Testing: Have you written and run sufficient tests for validating the changes?
Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
Prefix: To cleary categorize this pull request, prefix the pull request title, using one of the following:
BREAKING CHANGE: Significant changes that may affect compatibility
build: Changes that affect the build system or external dependencies
ci: Changes to our continuous integration processes or workflows
chore: Refactor, cleanup, or other non-functional code changes
docs: Documentation update or addition
feat: Introduces a new feature or enhancement to the codebase
fix: Bug fix or error correction
i18n: Internationalization or localization changes
perf: Performance improvement
refactor: Code restructuring for better maintainability, readability, or scalability
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
test: Adding missing tests or correcting existing tests
WIP: Work in progress, a temporary label for incomplete or ongoing work
Changelog Entry
Description
Fix Docker build errors
Fixed
Docker build errors
Additional Information
Two separate commits that blocked my docker build on an M2 Macbook Pro.
Increases Node memory limit with ENV NODE_OPTIONS="--max-old-space-size=4096" to fix the following Docker build error:
36.84 ✓ 3537 modules transformed.
37.54
37.54 <--- Last few GCs --->
37.54
37.54 [17:0xffffbc880000]32079 ms: Scavenge 2002.1 (2078.9) -> 1995.5 (2080.6) MB, pooled: 0 MB, 4.77 / 0.00 ms (average mu= 0.899, current mu= 0.926) allocation failure;
37.54 [17:0xffffbc880000]32091 ms: Scavenge 2003.0 (2080.6) -> 1996.0 (2096.6) MB, pooled: 0 MB, 2.59 / 0.00 ms (average mu= 0.899, current mu= 0.926) allocation failure;
37.54
37.54
37.54 <--- JS stacktrace --->
37.54
37.54 FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
37.54 ----- Native stack trace -----
37.54
38.10 npm error path /app
38.10 npm error command failed
38.10 npm error signal SIGABRT
38.10 npm error command sh -c npm run pyodide:fetch && vite build
Replaces require in favor of import to fix the following Docker build error:
7.667 file:///app/tailwind.config.js:39
7.667 plugins: [require('@tailwindcss/typography')]
7.667 ^
7.667
7.667 ReferenceError: require is not defined
7.667 at file:///app/tailwind.config.js:39:11
7.667 at ModuleJobSync.runSync (node:internal/modules/esm/module_job:395:35)
7.667 at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:329:47)
7.667 at loadESMFromCJS (node:internal/modules/cjs/loader:1414:24)
7.667 at Module._compile (node:internal/modules/cjs/loader:1547:5)
7.667 at Object..js (node:internal/modules/cjs/loader:1677:16)
7.667 at Module.load (node:internal/modules/cjs/loader:1318:32)
7.667 at Function._load (node:internal/modules/cjs/loader:1128:12)
7.667 at TracingChannel.traceSync (node:diagnostics_channel:322:14)
7.667 at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
7.667
7.667 Node.js v22.12.0
🔄 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/7614
**Author:** [@jedwards1230](https://github.com/jedwards1230)
**Created:** 12/5/2024
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `fix-tw-build`
---
### 📝 Commits (5)
- [`a0214f1`](https://github.com/open-webui/open-webui/commit/a0214f178eb57cec8dc6eae1757dc8a92b2d6d7b) fix: docker build error
- [`34ee2df`](https://github.com/open-webui/open-webui/commit/34ee2dfc846e46d9958a4b98fc59da0c7ea0989a) Merge branch 'open-webui:dev' into dev
- [`5bfe488`](https://github.com/open-webui/open-webui/commit/5bfe488512479daf7b417987faf0db76c8c00592) Merge branch 'open-webui:dev' into dev
- [`b5c55ad`](https://github.com/open-webui/open-webui/commit/b5c55adf39d63f97861c4a3171e44a7e68827e9d) Merge branch 'open-webui:dev' into dev
- [`c64693a`](https://github.com/open-webui/open-webui/commit/c64693a04796afa3adc60f412d02efb3181f26c9) refactor: import
### 📊 Changes
**2 files changed** (+5 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `Dockerfile` (+2 -0)
📝 `tailwind.config.js` (+3 -1)
</details>
### 📄 Description
# Pull Request Checklist
### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request.
**Before submitting, make sure you've checked the following:**
- [x] **Target branch:** Please verify that the pull request targets the `dev` branch.
- [x] **Description:** Provide a concise description of the changes made in this pull request.
- [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description.
- [ ] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources?
- [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation?
- [ ] **Testing:** Have you written and run sufficient tests for validating the changes?
- [ ] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
- [x] **Prefix:** To cleary categorize this pull request, prefix the pull request title, using one of the following:
- **BREAKING CHANGE**: Significant changes that may affect compatibility
- **build**: Changes that affect the build system or external dependencies
- **ci**: Changes to our continuous integration processes or workflows
- **chore**: Refactor, cleanup, or other non-functional code changes
- **docs**: Documentation update or addition
- **feat**: Introduces a new feature or enhancement to the codebase
- **fix**: Bug fix or error correction
- **i18n**: Internationalization or localization changes
- **perf**: Performance improvement
- **refactor**: Code restructuring for better maintainability, readability, or scalability
- **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)
- **test**: Adding missing tests or correcting existing tests
- **WIP**: Work in progress, a temporary label for incomplete or ongoing work
# Changelog Entry
### Description
- Fix Docker build errors
### Fixed
- Docker build errors
---
### Additional Information
Two separate commits that blocked my docker build on an M2 Macbook Pro.
1. Increases Node memory limit with `ENV NODE_OPTIONS="--max-old-space-size=4096"` to fix the following Docker build error:
```bash
36.84 ✓ 3537 modules transformed.
37.54
37.54 <--- Last few GCs --->
37.54
37.54 [17:0xffffbc880000] 32079 ms: Scavenge 2002.1 (2078.9) -> 1995.5 (2080.6) MB, pooled: 0 MB, 4.77 / 0.00 ms (average mu = 0.899, current mu = 0.926) allocation failure;
37.54 [17:0xffffbc880000] 32091 ms: Scavenge 2003.0 (2080.6) -> 1996.0 (2096.6) MB, pooled: 0 MB, 2.59 / 0.00 ms (average mu = 0.899, current mu = 0.926) allocation failure;
37.54
37.54
37.54 <--- JS stacktrace --->
37.54
37.54 FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
37.54 ----- Native stack trace -----
37.54
38.10 npm error path /app
38.10 npm error command failed
38.10 npm error signal SIGABRT
38.10 npm error command sh -c npm run pyodide:fetch && vite build
```
2. Replaces `require` in favor of `import` to fix the following Docker build error:
```bash
7.667 file:///app/tailwind.config.js:39
7.667 plugins: [require('@tailwindcss/typography')]
7.667 ^
7.667
7.667 ReferenceError: require is not defined
7.667 at file:///app/tailwind.config.js:39:11
7.667 at ModuleJobSync.runSync (node:internal/modules/esm/module_job:395:35)
7.667 at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:329:47)
7.667 at loadESMFromCJS (node:internal/modules/cjs/loader:1414:24)
7.667 at Module._compile (node:internal/modules/cjs/loader:1547:5)
7.667 at Object..js (node:internal/modules/cjs/loader:1677:16)
7.667 at Module.load (node:internal/modules/cjs/loader:1318:32)
7.667 at Function._load (node:internal/modules/cjs/loader:1128:12)
7.667 at TracingChannel.traceSync (node:diagnostics_channel:322:14)
7.667 at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
7.667
7.667 Node.js v22.12.0
```
---
<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/7614
Author: @jedwards1230
Created: 12/5/2024
Status: ❌ Closed
Base:
dev← Head:fix-tw-build📝 Commits (5)
a0214f1fix: docker build error34ee2dfMerge branch 'open-webui:dev' into dev5bfe488Merge branch 'open-webui:dev' into devb5c55adMerge branch 'open-webui:dev' into devc64693arefactor: import📊 Changes
2 files changed (+5 additions, -1 deletions)
View changed files
📝
Dockerfile(+2 -0)📝
tailwind.config.js(+3 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Fixed
Additional Information
Two separate commits that blocked my docker build on an M2 Macbook Pro.
ENV NODE_OPTIONS="--max-old-space-size=4096"to fix the following Docker build error:requirein favor ofimportto fix the following Docker build error:🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.