Download Dockerfile from darshankr/tts: direct link, hf CLI and curl.
- Browser
- Download file 663 Bytes
-
https://huggingface.co/spaces/darshankr/tts/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/darshankr/tts/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/darshankr/tts/resolve/main/Dockerfile
663 Bytes
| # 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"] |