Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -2,12 +2,14 @@ FROM python:3.12-slim
|
|
| 2 |
|
| 3 |
# Install system dependencies required by OpenCV (cv2)
|
| 4 |
# libgl1 is required for libGL.so.1
|
| 5 |
-
# libsm6 and libxext6 are
|
|
|
|
| 6 |
RUN apt-get update && \
|
| 7 |
apt-get install -y --no-install-recommends \
|
| 8 |
libgl1 \
|
| 9 |
libsm6 \
|
| 10 |
-
libxext6
|
|
|
|
| 11 |
rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
# Set the working directory in the container
|
|
|
|
| 2 |
|
| 3 |
# Install system dependencies required by OpenCV (cv2)
|
| 4 |
# libgl1 is required for libGL.so.1
|
| 5 |
+
# libsm6 and libxext6 are commonly needed by imaging libraries in a headless environment.
|
| 6 |
+
# libglib2.0-0 is required for libgthread-2.0.so.0
|
| 7 |
RUN apt-get update && \
|
| 8 |
apt-get install -y --no-install-recommends \
|
| 9 |
libgl1 \
|
| 10 |
libsm6 \
|
| 11 |
+
libxext6 \
|
| 12 |
+
libglib2.0-0 && \
|
| 13 |
rm -rf /var/lib/apt/lists/*
|
| 14 |
|
| 15 |
# Set the working directory in the container
|