mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
docker fails to build 0.4.8 - npm run build error #2997
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @NotReallyADeveloper on GitHub (Dec 11, 2024).
Bug Report
Installation Method
manual docker build . or sh ./run.sh
Environment
Open WebUI Version:0.4.8
Ollama (if applicable): n/a
Operating System: Mac OS 15.1.1
**Browser (if applicable):n/a **
Confirmation:
Expected Behavior:
docker container build should complete successfully
Actual Behavior:
process crashes out
Description
Bug Summary:
fatal error when trying to build docker container using 0.4.8 on Mac mini M4 Pro & Sequoia 15.1.1
Reproduction Details
Steps to Reproduce:
./docker build . or sh ./run.sh
Logs and Screenshots
@NotReallyADeveloper commented on GitHub (Dec 11, 2024):
As my user name suggests, I am not a developer. But I did manage to solve this.
Insert before line 34:
ENV NODE_OPTIONS=--max-old-space-size=4096Then make sure docker has at least 8 GB memory available to it.
docker build . ran perfectly to build the image.
To run the image, I ran the following command (modified from what is in the README file)
docker run -d --network=host -v open-webui:/app/backend/data -e OLLAMA_BASE_URL=http://127.0.0.1:11434 --name open-webui --restart always open-webui:latestHope this helps (don't know how to submit to the codebase, sorry).