mirror of
https://github.com/open-webui/pipelines
synced 2025-05-13 09:00:53 +00:00
Update Dockerfile
This commit is contained in:
parent
2177f358cf
commit
e7d979d43e
@ -25,13 +25,13 @@ WORKDIR /app
|
|||||||
# Install Python dependencies
|
# Install Python dependencies
|
||||||
RUN pip3 install uv && \
|
RUN pip3 install uv && \
|
||||||
if [ "$USE_CUDA" = "true" ]; then \
|
if [ "$USE_CUDA" = "true" ]; then \
|
||||||
# If you use CUDA the whisper and embedding model will be downloaded on first use
|
|
||||||
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/$USE_CUDA_DOCKER_VER --no-cache-dir && \
|
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/$USE_CUDA_DOCKER_VER --no-cache-dir && \
|
||||||
uv pip install --system -r requirements.txt --no-cache-dir \
|
uv pip install --system -r requirements.txt --no-cache-dir; \
|
||||||
else \
|
else \
|
||||||
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --no-cache-dir && \
|
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --no-cache-dir && \
|
||||||
uv pip install --system -r requirements.txt --no-cache-dir \
|
uv pip install --system -r requirements.txt --no-cache-dir; \
|
||||||
fi;
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Expose the port
|
# Expose the port
|
||||||
ENV HOST="0.0.0.0"
|
ENV HOST="0.0.0.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user