Spaces:
Build error
Build error
| # 1. BASE IMAGE - Python ka version select karein | |
| FROM python:3.9-slim | |
| # 2. WORKING DIRECTORY - App kahan chale ga | |
| WORKDIR /app | |
| # 3. SYSTEM DEPENDENCIES - Zaroori tools install karein | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 4. COPY REQUIREMENTS - Pehle requirements file copy karein | |
| COPY requirements.txt . | |
| # 5. INSTALL PACKAGES - Python packages install karein | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 6. COPY APP - App ka code copy karein | |
| COPY app.py . | |
| # 7. EXPOSE PORT - Gradio ka port (7860) | |
| EXPOSE 7860 | |
| # 8. RUN COMMAND - App start kaise karna hai | |
| CMD ["python", "app.py"] |