Spaces:
Running
Running
# 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"] | |