dbishwarup commited on
Commit
535f05c
·
verified ·
1 Parent(s): f2d4a33

Fix apt step (bullseye repos, no archive hack)

Browse files
Files changed (1) hide show
  1. 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
- # Debian buster is archived — point apt at the archive so we can install the few system libs OpenCV needs.
6
- RUN set -eux; \
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