File size: 884 Bytes
613dde2 d843214 613dde2 d843214 613dde2 d843214 a46f402 d843214 613dde2 d843214 a46f402 613dde2 d843214 a46f402 613dde2 4260269 613dde2 d843214 613dde2 d843214 613dde2 d843214 613dde2 d843214 | 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 | # 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"] |