# Python 3.10 (Slim Version) FROM python:3.10-slim # Working Directory WORKDIR /app # 1. System Tools (GCC और Audio tools) RUN apt-get update && apt-get install -y \ git \ ffmpeg \ espeak-ng \ build-essential \ python3-dev \ && rm -rf /var/lib/apt/lists/* # 2. PyTorch Install (GPU Support) RUN pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cu118 # 3. XTTS Install (GitHub se) RUN pip install --no-cache-dir git+https://github.com/coqui-ai/TTS.git # 🛠️ ERROR FIX 1: Transformers ko downgrade kar rahe hain (Crash rokne ke liye) RUN pip install --no-cache-dir transformers==4.42.4 # 🛠️ ERROR FIX 2: 'supabase' add kiya hai (Jo abhi missing tha) RUN pip install --no-cache-dir gradio spaces numpy==1.26.4 supabase # Copy Files COPY . . # Port Expose EXPOSE 7860 # Run App CMD ["python", "app.py"]