Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
FROM python:3.10.16-slim
|
| 2 |
|
| 3 |
-
|
|
|
|
| 4 |
|
| 5 |
RUN python --version
|
| 6 |
|
|
@@ -11,7 +12,7 @@ COPY requirements.txt .
|
|
| 11 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 12 |
pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
-
# Copy all Space files
|
| 15 |
COPY . .
|
| 16 |
|
| 17 |
# --- Patch 1: Add missing constants ---
|
|
|
|
| 1 |
FROM python:3.10.16-slim
|
| 2 |
|
| 3 |
+
# Install system dependencies: git (already there) and ffmpeg (new)
|
| 4 |
+
RUN apt-get update && apt-get install -y git ffmpeg && rm -rf /var/lib/apt/lists/*
|
| 5 |
|
| 6 |
RUN python --version
|
| 7 |
|
|
|
|
| 12 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 13 |
pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
| 15 |
+
# Copy all Space files
|
| 16 |
COPY . .
|
| 17 |
|
| 18 |
# --- Patch 1: Add missing constants ---
|