File size: 659 Bytes
134d1f8
 
 
 
 
 
58dac0a
 
 
 
 
 
 
134d1f8
58dac0a
134d1f8
 
 
f61f65c
 
134d1f8
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Use a Python base image
FROM python:3.9-slim

# Set the working directory
WORKDIR /code

# Install necessary system dependencies
RUN apt-get update && apt-get install -y \
    git \
    build-essential \
    gcc \
    && rm -rf /var/lib/apt/lists/*

# Clone the ChatTTS repository
RUN git clone https://github.com/2noise/ChatTTS.git && \
    cd ChatTTS && \
    pip install --no-cache-dir -r requirements.txt

ENV HF_HOME=/code/.cache

# Copy the API files
COPY . /code

# Install dependencies for the API
RUN pip install --no-cache-dir -r requirements.txt

# Command to run the application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]