Merge pull request #12009 from PeterDaveHello/Dockerfile

build: add one missing `--no-cache-dir` for `pip3 install` in Dockerfile
This commit is contained in:
Timothy Jaeryang Baek 2025-03-24 11:44:25 -07:00 committed by GitHub
commit 48b89322fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -132,7 +132,7 @@ RUN if [ "$USE_OLLAMA" = "true" ]; then \
# install python dependencies
COPY --chown=$UID:$GID ./backend/requirements.txt ./requirements.txt
RUN pip3 install uv && \
RUN pip3 install --no-cache-dir uv && \
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 && \