Spaces:
Runtime error
Runtime error
Pin opencv-python 4.5.2.52 (cp36 wheel) + libgl1
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
# Built for a Hugging Face Docker Space (listens on 7860).
|
| 3 |
FROM python:3.6-slim
|
| 4 |
|
| 5 |
-
# system
|
| 6 |
-
RUN apt-get update && apt-get install -y --no-install-recommends libglib2.0-0 && rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
WORKDIR /app
|
| 9 |
|
|
@@ -17,7 +17,7 @@ RUN pip install --no-cache-dir \
|
|
| 17 |
keras==2.0.8 \
|
| 18 |
scipy==1.5.4 \
|
| 19 |
scikit-image==0.17.2 \
|
| 20 |
-
"opencv-python
|
| 21 |
Pillow==8.2.0 \
|
| 22 |
imgaug==0.4.0 \
|
| 23 |
Cython==0.29.23 \
|
|
|
|
| 2 |
# Built for a Hugging Face Docker Space (listens on 7860).
|
| 3 |
FROM python:3.6-slim
|
| 4 |
|
| 5 |
+
# system libs OpenCV needs at runtime (bullseye repos are live)
|
| 6 |
+
RUN apt-get update && apt-get install -y --no-install-recommends libglib2.0-0 libgl1-mesa-glx && rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
WORKDIR /app
|
| 9 |
|
|
|
|
| 17 |
keras==2.0.8 \
|
| 18 |
scipy==1.5.4 \
|
| 19 |
scikit-image==0.17.2 \
|
| 20 |
+
"opencv-python==4.5.2.52" \
|
| 21 |
Pillow==8.2.0 \
|
| 22 |
imgaug==0.4.0 \
|
| 23 |
Cython==0.29.23 \
|