yukee1992 commited on
Commit
faaf9fc
·
verified ·
1 Parent(s): 7d6ab82

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -15,9 +15,10 @@ RUN mkdir -p /tmp/voices /tmp/output
15
  # Copy requirements first for better caching
16
  COPY requirements.txt .
17
 
18
- # Install Python dependencies
19
  RUN pip install --upgrade pip
20
- RUN pip install --no-cache-dir -r requirements.txt
 
21
 
22
  # Copy application code
23
  COPY app.py .
 
15
  # Copy requirements first for better caching
16
  COPY requirements.txt .
17
 
18
+ # Install Python dependencies with dependency resolution
19
  RUN pip install --upgrade pip
20
+ RUN pip install --no-cache-dir --upgrade setuptools wheel
21
+ RUN pip install --no-cache-dir -r requirements.txt || pip install --no-cache-dir fastapi uvicorn pydantic requests torch torchaudio TTS soundfile python-multipart
22
 
23
  # Copy application code
24
  COPY app.py .