From 3387f072668b5d4ebd310815a2eff6292c1c4762 Mon Sep 17 00:00:00 2001 From: huiwq1990 Date: Thu, 17 Jul 2025 10:23:49 +0800 Subject: [PATCH] pip install disable cache Signed-off-by: huiwq1990 --- docker/Dockerfile | 2 +- runtime/python/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index d7faf0319..8cefdba77 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -46,6 +46,6 @@ RUN git clone --recursive https://github.com/FunAudioLLM/CosyVoice.git RUN conda activate ${VENV} && conda install -y -c conda-forge pynini==2.1.5 RUN conda activate ${VENV} && cd CosyVoice && \ - pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com + pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com --no-cache-dir WORKDIR /workspace/CosyVoice diff --git a/runtime/python/Dockerfile b/runtime/python/Dockerfile index ae7e01fd1..e2d2012cf 100644 --- a/runtime/python/Dockerfile +++ b/runtime/python/Dockerfile @@ -9,5 +9,5 @@ RUN apt-get -y install git unzip git-lfs g++ RUN git lfs install RUN git clone --recursive https://github.com/FunAudioLLM/CosyVoice.git # here we use python==3.10 because we cannot find an image which have both python3.8 and torch2.0.1-cu118 installed -RUN cd CosyVoice && pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com +RUN cd CosyVoice && pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host=mirrors.aliyun.com --no-cache-dir RUN cd CosyVoice/runtime/python/grpc && python3 -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. cosyvoice.proto \ No newline at end of file