File size: 630 Bytes
4e45873
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Use an official Python runtime as a parent image
FROM python:3.9

# Set environment variables to accept the TTS licenses
ENV TTS_ACCEPT_TOS=1
ENV TTS_LICENSE_ACCEPT=true
ENV COQUI_STUDIO_LICENSE=1
ENV COQUI_LICENSE_AGREEMENT=n

# Set the working directory in the container
WORKDIR /app

# Copy the requirements.txt first to leverage Docker cache
COPY requirements.txt /app/

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

# Copy the rest of the application code
COPY . /app

# Expose the port that Gradio will use
EXPOSE 8600

# Command to run the application
CMD ["python", "app.py", "--share"]