CosyVoice/runtime/python/Dockerfile

13 lines
713 B
Docker
Raw Permalink Normal View History

2024-07-08 16:40:46 +08:00
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
2024-07-04 21:15:12 +08:00
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /opt/CosyVoice
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get update -y
2024-07-08 16:40:46 +08:00
RUN apt-get -y install git unzip git-lfs
RUN git lfs install
2024-07-05 10:00:08 +08:00
RUN git clone --recursive https://github.com/FunAudioLLM/CosyVoice.git
2024-07-08 16:40:46 +08:00
# 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
2024-07-11 17:36:59 +08:00
RUN cd CosyVoice/runtime/python/grpc && python3 -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. cosyvoice.proto