From 9bd3f60d597acc3fbb2d25a308380506571f9178 Mon Sep 17 00:00:00 2001 From: Father Bot Date: Sat, 24 Jan 2026 11:20:14 +0300 Subject: [PATCH] Upgrade Docker base image to Python 3.12 python:3.8-slim is EOL (security support ended Oct 2024). Move to python:3.12-slim and drop the pinned setuptools==59.5.0, which predates 3.12 support; use the current setuptools instead. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 711ff93..acccdee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.8-slim +FROM python:3.12-slim # flush stdout/stderr immediately so logs show up in `docker logs` ENV PYTHONUNBUFFERED=1 @@ -15,7 +15,7 @@ RUN \ ; \ rm -rf /var/lib/apt/lists/* -RUN pip3 install --no-cache-dir -U pip && pip3 install --no-cache-dir -U wheel && pip3 install --no-cache-dir -U setuptools==59.5.0 +RUN pip3 install --no-cache-dir -U pip && pip3 install --no-cache-dir -U wheel && pip3 install --no-cache-dir -U setuptools COPY ./requirements.txt /tmp/requirements.txt RUN pip3 install --no-cache-dir -r /tmp/requirements.txt && rm -r /tmp/requirements.txt