# Use Python 3.7 as base image | |
FROM python:3.7-slim | |
# Set working directory | |
WORKDIR /app | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y \ | |
git \ | |
python3-pip \ | |
python3.7-distutils \ | |
&& rm -rf /var/lib/apt/lists/* | |
# Copy your application file | |
COPY app.py . | |
# Clone Indic-TTS and install dependencies | |
RUN cd Indic-TTS && \ | |
cd Trainer && \ | |
python3 -m pip install -e .[all] && \ | |
cd ../TTS && \ | |
python3 -m pip install -e .[all] && \ | |
cd .. && \ | |
python3 -m pip install -r requirements.txt | |
# Set working directory back to /app | |
WORKDIR /app | |
# Set default command to run your app | |
CMD ["python3", "app.py"] |