sg123321 commited on
Commit
a46f402
·
verified ·
1 Parent(s): bb1c3cc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -0
Dockerfile CHANGED
@@ -1,19 +1,32 @@
 
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  git \
7
  ffmpeg \
8
  espeak-ng \
 
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
 
11
  RUN pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cu118
 
 
12
  RUN pip install --no-cache-dir git+https://github.com/coqui-ai/TTS.git
 
 
13
  RUN pip install --no-cache-dir gradio spaces numpy==1.26.4
14
 
 
15
  COPY . .
16
 
 
17
  EXPOSE 7860
18
 
 
19
  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
+ # 🛠️ FIXED: Added 'build-essential' and 'python3-dev' for GCC Compiler
8
  RUN apt-get update && apt-get install -y \
9
  git \
10
  ffmpeg \
11
  espeak-ng \
12
+ build-essential \
13
+ python3-dev \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
+ # 1. PyTorch Install (GPU Support)
17
  RUN pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cu118
18
+
19
+ # 2. XTTS Install (Ab ye fail nahi hoga)
20
  RUN pip install --no-cache-dir git+https://github.com/coqui-ai/TTS.git
21
+
22
+ # 3. Other Requirements
23
  RUN pip install --no-cache-dir gradio spaces numpy==1.26.4
24
 
25
+ # Copy Files
26
  COPY . .
27
 
28
+ # Port Expose
29
  EXPOSE 7860
30
 
31
+ # Run App
32
  CMD ["python", "app.py"]