From 099ea31e72de4a109a617bc795bb01f75da81356 Mon Sep 17 00:00:00 2001 From: hwangsihu <129564966+hwangsihu@users.noreply.github.com> Date: Fri, 9 May 2025 17:31:58 +0900 Subject: [PATCH] Dockerfile optimization Since you already have MiniForge installed, there is no need to specify or add channels. --- docker/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index d7faf0319..f31d9d92b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -9,7 +9,7 @@ ENV PYTHONUNBUFFERED=1 SHELL ["/bin/bash", "--login", "-c"] RUN apt-get update -y --fix-missing -RUN apt-get install -y git build-essential curl wget ffmpeg unzip git git-lfs sox libsox-dev && \ +RUN apt-get install -y build-essential curl ffmpeg git git-lfs libsox-dev sox unzip wget && \ apt-get clean && \ git lfs install @@ -28,8 +28,6 @@ RUN wget --quiet https://github.com/conda-forge/miniforge/releases/latest/downlo ENV PATH /opt/conda/bin:$PATH -RUN conda config --add channels conda-forge && \ - conda config --set channel_priority strict # ------------------------------------------------------------------ # ~conda # ================================================================== @@ -44,7 +42,7 @@ ENV PYTHONPATH="${PYTHONPATH}:/workspace/CosyVoice:/workspace/CosyVoice/third_pa 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} && conda install -y 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