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