File size: 945 Bytes
20dfbc0
8514937
 
20dfbc0
 
 
 
 
8514937
 
 
20dfbc0
 
 
 
8514937
20dfbc0
8514937
 
20dfbc0
8514937
 
20dfbc0
 
 
 
 
 
 
 
 
 
 
8514937
20dfbc0
 
8514937
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
28
29
30
31
32
33
34
35
36
37
38
# Use a base image with Python
FROM python:3.8-slim

# Set environment variables to avoid prompts during installation
ENV PYTHONUNBUFFERED 1
ENV PIP_NO_CACHE_DIR=off
ENV PIP_DISABLE_PIP_VERSION_CHECK=on

# Set the working directory
WORKDIR /app

# Install system dependencies and Python packages
RUN apt-get update && \
    apt-get install -y git && \
    pip install --no-cache-dir -U scipy gradio

# Clone the Tortoise-TTS repository
RUN git clone https://github.com/neonbjb/tortoise-tts.git

# Set the working directory to the cloned repository
WORKDIR /app/tortoise-tts

# Install the required Python packages from requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Install the package using setup.py
RUN python setup.py install

# Copy your application code (e.g., app.py) to the container
COPY app.py .

# Expose the port that Gradio will run on
EXPOSE 7860

# Command to run your application
CMD ["python", "app.py"]