@@ -13,16 +13,19 @@ RUN apt-get update --yes && \
1313 rm -rf /var/lib/apt/lists/*
1414
1515# Install pnpm
16- RUN curl -fsSL https://get.pnpm.io/install.sh | sh -
16+ RUN export SHELL=/bin/bash && curl -fsSL https://get.pnpm.io/install.sh | sh -
1717
1818# Install statics
1919WORKDIR /root
2020RUN git clone https://github.com/megaease/easevoice-trainer-portal.git
2121RUN cd easevoice-trainer-portal && echo 'use-node-version=22.14.0' >> ~/.npmrc
22- RUN cd easevoice-trainer-portal && pnpm install && pnpm build
22+ RUN cd easevoice-trainer-portal && /root/.local/share/ pnpm/pnpm install && /root/.local/share/pnpm/ pnpm build
2323
2424FROM nvidia/cuda:12.4.1-cudnn-devel-ubuntu22.04 AS runtime
2525
26+ SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
27+ ENV DEBIAN_FRONTEND noninteractive SHELL=/bin/bash
28+
2629# Install some basic utilities
2730RUN apt-get update --yes && \
2831 apt-get upgrade --yes && \
@@ -75,10 +78,31 @@ RUN pip install torch==2.4.0+cu124 torchvision==0.19.0+cu124 \
7578WORKDIR /megaease
7679RUN git clone https://github.com/megaease/easevoice-trainer.git
7780COPY --from=builder /root/easevoice-trainer-portal/dist /megaease/easevoice-trainer/src/dist
78- RUN pip install -r /megaease/easevoice-trainer/requirements.txt && \
79- pip install uv && \ rm -rf ~/.cache/pip
81+ RUN pip install -r /megaease/easevoice-trainer/requirements.txt
82+
83+ RUN apt-get install git-lfs -y && git lfs install
84+ RUN mkdir -p /megaease/easevoice-trainer/models
85+ RUN cd /megaease/easevoice-trainer/models && \
86+ git clone https://huggingface.co/lj1995/GPT-SoVITS && \
87+ git clone https://huggingface.co/Delik/uvr5_weights && \
88+ git clone https://www.modelscope.cn/iic/speech_frcrn_ans_cirm_16k.git && \
89+ git clone https://huggingface.co/lucasjin/punc_ct-transformer_zh-cn-common-vocab272727-pytorch && \
90+ git clone https://huggingface.co/manyeyes/speech_fsmn_vad_zh-cn-16k-common-onnx && \
91+ git clone https://www.modelscope.cn/iic/speech_fsmn_vad_zh-cn-16k-common-pytorch.git && \
92+ git clone https://www.modelscope.cn/iic/speech_seaco_paraformer_large_asr_nat-zh-cn-16k-common-vocab8404-pytorch.git && \
93+ mv GPT-SoVITS /megaease/easevoice-trainer/models/pretrained && \
94+ mv uvr5_weights /megaease/easevoice-trainer/models/uvr5_weights && \
95+ mkdir -p /megaease/easevoice-trainer/models/asr&& \
96+ mv speech_fsmn_vad_zh-cn-16k-common-onnx /megaease/easevoice-trainer/models/asr/speech_fsmn_vad_zh-cn-16k-common-onnx && \
97+ mv speech_fsmn_vad_zh-cn-16k-common-pytorch /megaease/easevoice-trainer/models/asr/speech_fsmn_vad_zh-cn-16k-common-pytorch && \
98+ mv punc_ct-transformer_zh-cn-common-vocab272727-pytorch /megaease/easevoice-trainer/models/asr/punc_ct-transformer_zh-cn-common-vocab272727-pytorch && \
99+ mv speech_frcrn_ans_cirm_16k /megaease/easevoice-trainer/models/asr/speech_frcrn_ans_cirm_16k && \
100+ mv speech_seaco_paraformer_large_asr_nat-zh-cn-16k-common-vocab8404-pytorch /megaease/easevoice-trainer/models/asr/speech_seaco_paraformer_large_asr_nat-zh-cn-16k-common-vocab8404-pytorch
101+
80102
81103COPY start.sh /usr/local/bin/start.sh
82104RUN chmod +x /usr/local/bin/start.sh
83105
106+ EXPOSE 8000
107+
84108CMD ["/usr/local/bin/start.sh" ]
0 commit comments