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:
@@ -4,7 +4,7 @@ ARG VARIANT=cpu
|
|||||||
FROM python:3.12-slim AS base-cpu
|
FROM python:3.12-slim AS base-cpu
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
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/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY requirements-cpu.txt /tmp/requirements-cpu.txt
|
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 update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
python3.12 python3.12-venv python3.12-dev \
|
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.12 /usr/bin/python3 \
|
||||||
&& ln -sf /usr/bin/python3 /usr/bin/python \
|
&& ln -sf /usr/bin/python3 /usr/bin/python \
|
||||||
&& python3 -m ensurepip --upgrade \
|
&& python3 -m ensurepip --upgrade \
|
||||||
|
|||||||
Reference in New Issue
Block a user