Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -17,8 +17,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 17 |
# Copy the requirements.txt file into the container at /app
|
| 18 |
COPY requirements.txt /app/requirements.txt
|
| 19 |
|
| 20 |
-
# Upgrade pip and install the Python dependencies
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
# Download spaCy's small English model (used by your app)
|
| 24 |
RUN python -m spacy download en_core_web_sm
|
|
@@ -31,3 +34,4 @@ EXPOSE 8500
|
|
| 31 |
|
| 32 |
# Run the application with Uvicorn
|
| 33 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8500"]
|
|
|
|
|
|
| 17 |
# Copy the requirements.txt file into the container at /app
|
| 18 |
COPY requirements.txt /app/requirements.txt
|
| 19 |
|
| 20 |
+
# Upgrade pip and install the Python dependencies from requirements.txt
|
| 21 |
+
# Then, explicitly install moviepy to ensure its submodules are available.
|
| 22 |
+
RUN pip install --upgrade pip && \
|
| 23 |
+
pip install --no-cache-dir -r requirements.txt && \
|
| 24 |
+
pip install --no-cache-dir moviepy
|
| 25 |
|
| 26 |
# Download spaCy's small English model (used by your app)
|
| 27 |
RUN python -m spacy download en_core_web_sm
|
|
|
|
| 34 |
|
| 35 |
# Run the application with Uvicorn
|
| 36 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8500"]
|
| 37 |
+
|