mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
[PR #1533] [CLOSED] refac: non-privileged Dockerfile #7493
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/1533
Author: @ghost
Created: 4/13/2024
Status: ❌ Closed
Base:
dev← Head:dockerfile-non-root📝 Commits (1)
8d22daerefac: non-root Dockerfile📊 Changes
2 files changed (+29 additions, -13 deletions)
View changed files
📝
Dockerfile(+29 -8)📝
backend/start.sh(+0 -5)📄 Description
Pull Request Checklist
Description
Follow Docker best practices: update Dockerfile to run as a non-root user. This reduces the potential attack surface and follows the Docker security recommendation. See:
https://docs.docker.com/engine/security/#conclusions
https://docs.docker.com/develop/develop-images/instructions/#user
Basic testing succeeds, standard and builds with
--build-arg="USE_CUDA=true"--build-arg"USE_OLLAMA=true"function as expected.Changelog Entry
Added
ARGs for new system open-webui user/group UID & GID.USERinstruction where possible to complete the build as limited user.ENV PATH=and executechown©with--chownas required.Fixed
Changed
LD_LIBRARY_PATH=required for CUDA to Dockerfile usingENV LD_LIBRARY_PATH=.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.