Update Dockerfile
Browse files- Dockerfile +8 -3
Dockerfile
CHANGED
@@ -4,9 +4,15 @@ FROM python:3.9-slim
|
|
4 |
# Set the working directory
|
5 |
WORKDIR /code
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
# Clone the ChatTTS repository
|
8 |
-
RUN
|
9 |
-
git clone https://github.com/2noise/ChatTTS.git && \
|
10 |
cd ChatTTS && \
|
11 |
pip install --no-cache-dir -r requirements.txt
|
12 |
|
@@ -16,6 +22,5 @@ COPY . /code
|
|
16 |
# Install dependencies for the API
|
17 |
RUN pip install --no-cache-dir -r requirements.txt
|
18 |
|
19 |
-
|
20 |
# Command to run the application
|
21 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
4 |
# Set the working directory
|
5 |
WORKDIR /code
|
6 |
|
7 |
+
# Install necessary system dependencies
|
8 |
+
RUN 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 repository
|
15 |
+
RUN git clone https://github.com/2noise/ChatTTS.git && \
|
|
|
16 |
cd ChatTTS && \
|
17 |
pip install --no-cache-dir -r requirements.txt
|
18 |
|
|
|
22 |
# Install dependencies for the API
|
23 |
RUN pip install --no-cache-dir -r requirements.txt
|
24 |
|
|
|
25 |
# Command to run the application
|
26 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|