Create Dockerfile
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use a Python base image
|
2 |
+
FROM python:3.9-slim
|
3 |
+
|
4 |
+
# Set the working directory
|
5 |
+
WORKDIR /code
|
6 |
+
|
7 |
+
# Clone the ChatTTS repository
|
8 |
+
RUN apt-get update && apt-get install -y git && \
|
9 |
+
git clone https://github.com/2noise/ChatTTS.git && \
|
10 |
+
cd ChatTTS && \
|
11 |
+
pip install --no-cache-dir -r requirements.txt
|
12 |
+
|
13 |
+
# Copy the API files
|
14 |
+
COPY . /code
|
15 |
+
|
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"]
|