From b815e47f7c3b105f8d40121a1bf7f977a40eebbe Mon Sep 17 00:00:00 2001 From: yangdx Date: Sat, 23 Aug 2025 23:38:39 +0800 Subject: [PATCH] Upgrade Python to 3.12 and update pip/setuptools in Dockerfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Upgrade base image to Python 3.12 • Update pip, setuptools, wheel --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 619ec1ad..cd122cf2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,11 @@ # Build stage -FROM python:3.11-slim AS builder +FROM python:3.12-slim AS builder WORKDIR /app +# Upgrade pip、setuptools and wheel to the latest version +RUN pip install --upgrade pip setuptools wheel + # Install Rust and required build dependencies RUN apt-get update && apt-get install -y \ curl \ @@ -30,10 +33,13 @@ RUN pip install --user --no-cache-dir openai ollama tiktoken RUN pip install --user --no-cache-dir pypdf2 python-docx python-pptx openpyxl # Final stage -FROM python:3.11-slim +FROM python:3.12-slim WORKDIR /app +# Upgrade pip and setuptools +RUN pip install --upgrade pip setuptools wheel + # Copy only necessary files from builder COPY --from=builder /root/.local /root/.local COPY ./lightrag ./lightrag