fix: Downgrade Python to 3.11 and use compatible dependency versions
Some checks failed
Build and Push Docker Image / build-gpu (push) Failing after 10s
Build and Push Docker Image / build-cpu (push) Failing after 10s

This commit is contained in:
Developer
2026-02-16 20:07:26 +01:00
parent e7a68c9c6d
commit 7c4a3c5abf
4 changed files with 22 additions and 22 deletions

View File

@@ -1,7 +1,7 @@
ARG VARIANT=cpu ARG VARIANT=cpu
# ---- CPU base ---- # ---- 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 \ RUN apt-get update && apt-get install -y --no-install-recommends \
curl libgl1 libglib2.0-0 \ 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 \ && add-apt-repository ppa:deadsnakes/ppa \
&& 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.11 python3.11-venv python3.11-dev \
curl libgl1 libglib2.0-0 \ 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 \ && ln -sf /usr/bin/python3 /usr/bin/python \
&& python3 -m ensurepip --upgrade \ && python3 -m ensurepip --upgrade \
&& python3 -m pip install --no-cache-dir --upgrade pip \ && python3 -m pip install --no-cache-dir --upgrade pip \

View File

@@ -1,4 +1,4 @@
torch==2.10.0 torch==2.0.1
torchvision==0.15.0 torchvision==0.15.2
Real-ESRGAN==0.3.0 realesrgan>=0.2.5
basicsr==1.4.2 basicsr>=1.4.1

View File

@@ -1,5 +1,5 @@
--extra-index-url https://download.pytorch.org/whl/cu124 --extra-index-url https://download.pytorch.org/whl/cu118
torch==2.5.1 torch==2.0.1
torchvision==0.20.1 torchvision==0.15.2
Real-ESRGAN==0.3.0 realesrgan>=0.2.5
basicsr==1.4.2 basicsr>=1.4.1

View File

@@ -1,12 +1,12 @@
fastapi==0.115.6 fastapi==0.104.1
uvicorn[standard]==0.34.0 uvicorn[standard]==0.24.0
python-multipart==0.0.18 python-multipart==0.0.6
pydantic-settings==2.7.1 pydantic-settings==2.1.0
psutil==6.1.1 psutil==5.9.6
httpx==0.27.0 httpx==0.25.2
# Real-ESRGAN and dependencies # Real-ESRGAN and dependencies
opencv-python==4.10.0.84 opencv-python==4.8.1.78
numpy==1.26.4 numpy==1.24.3
scipy==1.14.1 scipy==1.11.4
tqdm==4.67.1 tqdm==4.66.1