fix: Downgrade Python to 3.11 and use compatible dependency versions
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
ARG VARIANT=cpu
|
||||
|
||||
# ---- CPU base ----
|
||||
FROM python:3.12-slim AS base-cpu
|
||||
FROM python:3.11-slim AS base-cpu
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
curl libgl1 libglib2.0-0 \
|
||||
@@ -22,9 +22,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
&& add-apt-repository ppa:deadsnakes/ppa \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
python3.12 python3.12-venv python3.12-dev \
|
||||
python3.11 python3.11-venv python3.11-dev \
|
||||
curl libgl1 libglib2.0-0 \
|
||||
&& ln -sf /usr/bin/python3.12 /usr/bin/python3 \
|
||||
&& ln -sf /usr/bin/python3.11 /usr/bin/python3 \
|
||||
&& ln -sf /usr/bin/python3 /usr/bin/python \
|
||||
&& python3 -m ensurepip --upgrade \
|
||||
&& python3 -m pip install --no-cache-dir --upgrade pip \
|
||||
|
||||
Reference in New Issue
Block a user