Spaces:
Sleeping
Sleeping
Commit ·
99ca25e
1
Parent(s): ce4fddb
fix: use libgl1 and pin to bookworm (libgl1-mesa-glx removed in trixie)
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
-
FROM python:3.11-slim
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
# Install system dependencies for OpenCV
|
|
|
|
| 6 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
-
libgl1
|
| 8 |
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
COPY requirements.txt .
|
|
|
|
| 1 |
+
FROM python:3.11-slim-bookworm
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
# Install system dependencies for OpenCV
|
| 6 |
+
# libgl1-mesa-glx was removed in Debian Trixie — use libgl1 instead
|
| 7 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 8 |
+
libgl1 libglib2.0-0 libsm6 libxrender1 libxext6 \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
COPY requirements.txt .
|