|
|
|
FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04 |
|
|
|
|
|
LABEL description="Docker image for xtts-api-server" |
|
|
|
|
|
RUN apt-get update && \ |
|
apt-get install --no-install-recommends -y \ |
|
python3-dev portaudio19-dev libportaudio2 libasound2-dev libportaudiocpp0 \ |
|
git python3 python3-pip make g++ ffmpeg && \ |
|
rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
RUN python3 -m pip install --upgrade pip setuptools wheel ninja virtualenv |
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu121 |
|
RUN pip install deepspeed |
|
RUN pip install xtts-api-server |
|
|
|
|
|
EXPOSE 8020 |
|
|
|
|
|
CMD ["bash", "-c", "python3 -m xtts_api_server --listen -p 8020 -t 'http://localhost:8020' -sf 'xtts-server/speakers' -o 'xtts-server/output' -mf 'xtts-server/models' --deepspeed"] |
|
|