xtts / Dockerfile
rrg92's picture
Changed coqui to forked (and updated) version from idiap/coqui-ai-TTS
c56f0a9
raw
history blame
708 Bytes
FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-devel
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install --no-install-recommends -y sox libsox-fmt-all curl wget gcc git git-lfs build-essential libaio-dev libsndfile1 ssh ffmpeg && \
apt-get clean && apt-get -y autoremove
WORKDIR /app
COPY requirements.txt .
RUN python -m pip install --verbose -r requirements.txt
RUN python -m pip cache purge
RUN python -m unidic download
RUN mkdir -p /app/tts_models
RUN python -m pip install gradio==5.5
RUN python -m pip install spaces
COPY xtts.py .
COPY app.py .
#Mark this 1 if you have older card
#ENV NVIDIA_DISABLE_REQUIRE=0
ENV NUM_THREADS=2
EXPOSE 80
CMD ["python","app.py"]