mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #12284] feat: move base image of openwebui to fix vulnerabilities #32061
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 @thenicekat on GitHub (Apr 1, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12284
Check Existing Issues
Problem Description
Openwebui currently uses python3.11-slim-bookworm as the base image which brings with itself quite a lot of vulnerabilities. Is there any plan on fixing these?
Ref: https://hub.docker.com/layers/library/python/3.11-slim-bookworm/images/sha256-55a4707a91d43b6397215a57b818d2822e66c27fd973bb82eb71b7512c15a4da
Desired Solution you'd like
Can we possibly move to a better base image or maybe move to a distroless image. I would be glad to help you out here.
Alternatives Considered
No response
Additional Context
No response
@gaby commented on GitHub (Apr 5, 2025):
@thenicekat If you add the platform filter, you will see it only has 1 critical CVE. The image for py3.12 has none.
@gaby commented on GitHub (Apr 5, 2025):
Distroless doesnt have things like a shell, which Open-WebUI relies on. It would also not allow users to exec into the container.
@gaby commented on GitHub (Apr 6, 2025):
@tjbck I can submit a PR to bump the Docker base image to
python3.12-slim-bookwormif that's OK with you. It will solve several of these issues from the base image.@tjbck commented on GitHub (Apr 6, 2025):
3.12 should also work out of the box, PR welcome!
@gaby commented on GitHub (Apr 6, 2025):
PR submitted.
@thenicekat commented on GitHub (Apr 7, 2025):
Thank you.
@Azzeo commented on GitHub (May 2, 2025):
This PR was reverted:
Can this be looked at again?
@thenicekat commented on GitHub (May 6, 2025):
@tjbck can we open this issue atleast to keep track of upgrading the base image?