Successmove commited on
Commit
5d1632b
·
verified ·
1 Parent(s): f97264b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -4
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
@@ -12,9 +12,23 @@ RUN apt-get update && apt-get install -y \
12
  # Upgrade pip to the latest version
13
  RUN pip install --upgrade pip
14
 
15
- # Copy requirements and install Python dependencies
16
- COPY requirements.txt .
17
- RUN pip install --no-cache-dir -r requirements.txt
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  # Copy application code
20
  COPY app.py .
 
1
+ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
 
12
  # Upgrade pip to the latest version
13
  RUN pip install --upgrade pip
14
 
15
+ # Install numpy first (as it's a common dependency)
16
+ RUN pip install --no-cache-dir numpy==1.22.0
17
+
18
+ # Install scipy (depends on numpy)
19
+ RUN pip install --no-cache-dir scipy>=1.11.2
20
+
21
+ # Install torch and torchaudio
22
+ RUN pip install --no-cache-dir torch>=2.0.1 torchaudio>=2.0.2
23
+
24
+ # Install librosa and soundfile
25
+ RUN pip install --no-cache-dir librosa>=0.10.1 soundfile>=0.12.1
26
+
27
+ # Install gradio
28
+ RUN pip install --no-cache-dir gradio==4.36.1
29
+
30
+ # Install TTS last
31
+ RUN pip install --no-cache-dir TTS==0.22.0
32
 
33
  # Copy application code
34
  COPY app.py .