Update Dockerfile
Browse files- 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
|
|
|
|
| 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 .
|