mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #1165] [MERGED] refac: Dockerfile #20590
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/1165
Author: @jannikstdl
Created: 3/14/2024
Status: ✅ Merged
Merged: 4/8/2024
Merged by: @tjbck
Base:
dev← Head:dockerfile-optimisation📝 Commits (10+)
50bec32Dockerfile optimisation384b7e8changed from bullseye to bookworm + removed unused steps62ab163Update Dockerfile29e48b1Exposed port 808075a40deCreate Dockerfile-cudaf6cef31Optimize Dockerfile for CUDA supporte3b1cbbParametrize CUDA_VERSION in Dockerfilec004ecdRefactor Dockerfile for CPU and CUDA buildsc5948d3Updated Dockerfile for CUDA backend5abe008cuda support📊 Changes
7 files changed (+216 additions, -94 deletions)
View changed files
📝
.github/workflows/docker-build.yaml(+26 -10)📝
Dockerfile(+89 -58)📝
README.md(+59 -0)📝
backend/apps/audio/main.py(+6 -1)📝
backend/apps/rag/main.py(+3 -13)📝
backend/config.py(+17 -6)📝
backend/start.sh(+16 -6)📄 Description
I made some changes to the dockerfile, optimizing the codebase for best practices and reducing the size a bit.
Added CUDA Support for the Whisper and embedding models.
Also added an argument to include Ollama in the Image.
Changes.
RUN python -c "import os; from chromadb. utils import embedding_functions; sentence_transformer_ef = embedding_functions.SentenceTransformerEmbeddingFunction(model_name=os.environ['RAG_EMBEDDING_MODEL'], device=os.environ['RAG_EMBEDDING_MODEL_DEVICE_TYPE'])".nodeto21-bookworm-slimbecause 1. deb bookworm is a very stable base and 2. it is a defined version for no automatic latest pulls as this can lead to problems in the future.--no-install-recommendsto the apt-get's to reduce image size.Note: This should be double checked since this is affecting many users!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.