Spaces:
Running
Running
Commit ·
ae18450
1
Parent(s): b3222ea
Fix libxcb ImportError: Add GUI Linux dependencies for OpenCV into explicit Dockerfile layer
Browse files- Dockerfile +1 -0
- packages.txt +0 -8
Dockerfile
CHANGED
|
@@ -3,6 +3,7 @@ FROM python:3.10-slim
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
COPY requirements.txt .
|
|
|
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
RUN pip install "numpy<2"
|
| 8 |
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
COPY requirements.txt .
|
| 6 |
+
RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 libsm6 libxext6 libxrender-dev libxcb1 libxcb-shape0 libxcb-xfixes0 && rm -rf /var/lib/apt/lists/*
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
RUN pip install "numpy<2"
|
| 9 |
|
packages.txt
DELETED
|
@@ -1,8 +0,0 @@
|
|
| 1 |
-
libgl1
|
| 2 |
-
libglib2.0-0
|
| 3 |
-
libsm6
|
| 4 |
-
libxext6
|
| 5 |
-
libxrender-dev
|
| 6 |
-
libxcb1
|
| 7 |
-
libxcb-shape0
|
| 8 |
-
libxcb-xfixes0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|