mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
fix: Add PYTHONUNBUFFERED=1 to Dockerfile for proper logging in containerized deployments
When Python runs in Docker containers without PYTHONUNBUFFERED=1, stdout and stderr output is buffered. If the application crashes before the buffer is flushed, critical log output is lost, making debugging and error reporting difficult. This change ensures that Python output is unbuffered so that all logs are captured immediately, regardless of whether the application crashes or exits normally. Fixes issue #19844
This commit is contained in:
parent
6f1486ffd0
commit
632aaff608
1 changed files with 1 additions and 0 deletions
|
|
@ -57,6 +57,7 @@ ARG GID
|
|||
|
||||
## Basis ##
|
||||
ENV ENV=prod \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PORT=8080 \
|
||||
# pass build args to the build
|
||||
USE_OLLAMA_DOCKER=${USE_OLLAMA} \
|
||||
|
|
|
|||
Loading…
Reference in a new issue