Spaces:
Runtime error
Runtime error
Fix broken OpenCV installation for docker container
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -25,6 +25,10 @@ USER root
|
|
25 |
RUN python -m venv /venv && \
|
26 |
/venv/bin/pip install --no-cache-dir -r requirements.txt
|
27 |
|
|
|
|
|
|
|
|
|
28 |
# Set user back to non-root
|
29 |
USER user
|
30 |
|
|
|
25 |
RUN python -m venv /venv && \
|
26 |
/venv/bin/pip install --no-cache-dir -r requirements.txt
|
27 |
|
28 |
+
# Fix broken OpenCV installation for docker container
|
29 |
+
RUN apt-get update && apt-get install -y python3-opencv
|
30 |
+
RUN /venv/bin/pip pip install opencv-python
|
31 |
+
|
32 |
# Set user back to non-root
|
33 |
USER user
|
34 |
|