Spaces:
Runtime error
Runtime error
Fix apt step (bullseye repos, no archive hack)
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
|
@@ -2,12 +2,8 @@
|
|
| 2 |
# Built for a Hugging Face Docker Space (listens on 7860).
|
| 3 |
FROM python:3.6-slim
|
| 4 |
|
| 5 |
-
#
|
| 6 |
-
RUN
|
| 7 |
-
sed -i 's|deb.debian.org|archive.debian.org|g; s|security.debian.org|archive.debian.org|g; /buster-updates/d' /etc/apt/sources.list; \
|
| 8 |
-
apt-get -o Acquire::Check-Valid-Until=false update; \
|
| 9 |
-
apt-get install -y --no-install-recommends libglib2.0-0 libgl1-mesa-glx; \
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
WORKDIR /app
|
| 13 |
|
|
|
|
| 2 |
# Built for a Hugging Face Docker Space (listens on 7860).
|
| 3 |
FROM python:3.6-slim
|
| 4 |
|
| 5 |
+
# system lib OpenCV needs (base image is Debian bullseye — repos are live, no archive workaround)
|
| 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 |
|