fix: replace libgl1-mesa-glx with libgl1

libgl1-mesa-glx is a transitional package removed in Debian Bookworm.
libgl1 is the correct replacement for both CPU (Bookworm) and GPU (Ubuntu 22.04).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-16 13:28:49 +01:00
parent 0d51204862
commit 3812bff509

View File

@@ -4,7 +4,7 @@ ARG VARIANT=cpu
FROM python:3.12-slim AS base-cpu
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg curl libgl1-mesa-glx libglib2.0-0 \
ffmpeg curl libgl1 libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements-cpu.txt /tmp/requirements-cpu.txt
@@ -22,7 +22,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
python3.12 python3.12-venv python3.12-dev \
ffmpeg curl libgl1-mesa-glx libglib2.0-0 \
ffmpeg curl libgl1 libglib2.0-0 \
&& ln -sf /usr/bin/python3.12 /usr/bin/python3 \
&& ln -sf /usr/bin/python3 /usr/bin/python \
&& python3 -m ensurepip --upgrade \