Spaces:
Running
Running
Create Dockerfile
Browse files- Dockerfile +26 -0
Dockerfile
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.9
|
3 |
+
|
4 |
+
# Set environment variables to accept the TTS licenses
|
5 |
+
ENV TTS_ACCEPT_TOS=1
|
6 |
+
ENV TTS_LICENSE_ACCEPT=true
|
7 |
+
ENV COQUI_STUDIO_LICENSE=1
|
8 |
+
ENV COQUI_LICENSE_AGREEMENT=n
|
9 |
+
|
10 |
+
# Set the working directory in the container
|
11 |
+
WORKDIR /app
|
12 |
+
|
13 |
+
# Copy the requirements.txt first to leverage Docker cache
|
14 |
+
COPY requirements.txt /app/
|
15 |
+
|
16 |
+
# Install the dependencies
|
17 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
18 |
+
|
19 |
+
# Copy the rest of the application code
|
20 |
+
COPY . /app
|
21 |
+
|
22 |
+
# Expose the port that Gradio will use
|
23 |
+
EXPOSE 8600
|
24 |
+
|
25 |
+
# Command to run the application
|
26 |
+
CMD ["python", "app.py", "--share"]
|