Do0rMaMu/chat-TTS
0
1# Use a Python base image2FROM python:3.9-slim3 4# Set the working directory5WORKDIR /code6 7# Install necessary system dependencies8RUN apt-get update && apt-get install -y \9 git \10 build-essential \11 gcc \12 && rm -rf /var/lib/apt/lists/*13 14# Clone the ChatTTS repository15RUN git clone https://github.com/2noise/ChatTTS.git && \16 cd ChatTTS && \17 pip install --no-cache-dir -r requirements.txt18 19ENV HF_HOME=/code/.cache20 21# Copy the API files22COPY . /code23 24# Install dependencies for the API25RUN pip install --no-cache-dir -r requirements.txt26 27# Command to run the application28CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]29 