sg123321 commited on
Commit
613dde2
·
verified ·
1 Parent(s): 1dd5ac4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -6
Dockerfile CHANGED
@@ -1,8 +1,10 @@
 
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /app
4
 
5
- # 1. System Tools (GCC Fix included)
6
  RUN apt-get update && apt-get install -y \
7
  git \
8
  ffmpeg \
@@ -11,20 +13,23 @@ RUN apt-get update && apt-get install -y \
11
  python3-dev \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- # 2. PyTorch (GPU Ready)
15
  RUN pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cu118
16
 
17
- # 3. Install XTTS
18
  RUN pip install --no-cache-dir git+https://github.com/coqui-ai/TTS.git
19
 
20
- # 🛠️ ERROR FIX: Transformers ko downgrade kar rahe hain taaki 'BeamSearchScorer' mil jaye
21
  RUN pip install --no-cache-dir transformers==4.42.4
22
 
23
- # 4. Final Requirements
24
- RUN pip install --no-cache-dir gradio spaces numpy==1.26.4
25
 
 
26
  COPY . .
27
 
 
28
  EXPOSE 7860
29
 
 
30
  CMD ["python", "app.py"]
 
1
+ # Python 3.10 (Slim Version)
2
  FROM python:3.10-slim
3
 
4
+ # Working Directory
5
  WORKDIR /app
6
 
7
+ # 1. System Tools (GCC और Audio tools)
8
  RUN apt-get update && apt-get install -y \
9
  git \
10
  ffmpeg \
 
13
  python3-dev \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
+ # 2. PyTorch Install (GPU Support)
17
  RUN pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cu118
18
 
19
+ # 3. XTTS Install (GitHub se)
20
  RUN pip install --no-cache-dir git+https://github.com/coqui-ai/TTS.git
21
 
22
+ # 🛠️ ERROR FIX 1: Transformers ko downgrade kar rahe hain (Crash rokne ke liye)
23
  RUN pip install --no-cache-dir transformers==4.42.4
24
 
25
+ # 🛠️ ERROR FIX 2: 'supabase' add kiya hai (Jo abhi missing tha)
26
+ RUN pip install --no-cache-dir gradio spaces numpy==1.26.4 supabase
27
 
28
+ # Copy Files
29
  COPY . .
30
 
31
+ # Port Expose
32
  EXPOSE 7860
33
 
34
+ # Run App
35
  CMD ["python", "app.py"]