Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +8 -12
Dockerfile
CHANGED
|
@@ -10,21 +10,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 10 |
# Create required directories
|
| 11 |
RUN mkdir -p uploaded_images static models uploaded_videos
|
| 12 |
|
| 13 |
-
# 1. Install NumPy <
|
| 14 |
-
RUN pip install --no-cache-dir "numpy<
|
| 15 |
|
| 16 |
-
# 2.
|
| 17 |
RUN pip install --no-cache-dir \
|
|
|
|
| 18 |
fastapi==0.95.0 \
|
| 19 |
uvicorn==0.21.1 \
|
| 20 |
python-multipart==0.0.6 \
|
| 21 |
-
opencv-python-headless==4.7.0.72 \
|
| 22 |
matplotlib==3.7.1 \
|
| 23 |
-
huggingface_hub==0.14.1
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
EXPOSE 7860
|
| 29 |
-
|
| 30 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 10 |
# Create required directories
|
| 11 |
RUN mkdir -p uploaded_images static models uploaded_videos
|
| 12 |
|
| 13 |
+
# 1. Install NumPy FIRST (version <2)
|
| 14 |
+
RUN pip install --no-cache-dir "numpy<1.25"
|
| 15 |
|
| 16 |
+
# 2. Install opencv and other libraries in the correct order
|
| 17 |
RUN pip install --no-cache-dir \
|
| 18 |
+
opencv-python-headless==4.7.0.72 \
|
| 19 |
fastapi==0.95.0 \
|
| 20 |
uvicorn==0.21.1 \
|
| 21 |
python-multipart==0.0.6 \
|
|
|
|
| 22 |
matplotlib==3.7.1 \
|
| 23 |
+
huggingface_hub==0.14.1 \
|
| 24 |
+
face_recognition==1.3.0 \
|
| 25 |
+
torchvision==0.14.1 \
|
| 26 |
+
Pillow==9.4.0
|
|
|
|
|
|
|
|
|
|
|
|