build: add one missing `--no-cache-dir` for `pip3 install` in Dockerfile

This commit is contained in:
Peter Dave Hello 2025-03-24 20:45:16 +08:00
parent d81d1333ba
commit aaf47486da
1 changed files with 1 additions and 1 deletions

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 && \