From 6f5ec7bd1482fb78dcbbbaf5d49df8170ec9c25e Mon Sep 17 00:00:00 2001 From: Christian Krakau-Louis Date: Sat, 29 Mar 2025 03:56:04 +0100 Subject: [PATCH] chore: update Python version in Dockerfile and enhance requirements.txt with comments --- Dockerfile | 4 ++-- requirements.txt | 32 ++++++++++++++------------------ 2 files changed, 16 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index 659e9a9f..42d6efdd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Stage 1: Build dependencies -FROM python:3.11 AS builder +FROM python:3.13 AS builder WORKDIR /app @@ -13,7 +13,7 @@ FROM python:3.13.2-slim WORKDIR /app # Copy installed dependencies -COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages +COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages COPY --from=builder /usr/local/bin /usr/local/bin # Copy application files correctly diff --git a/requirements.txt b/requirements.txt index 82bcc5fd..879cf836 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,18 +1,14 @@ -fastapi[all] -uvicorn -celery -redis -sqlalchemy -pydantic -boto3 -pikepdf -openai -# Add this line explicitly -#pymupdf==1.23.5 -pymupdf -requests -dropbox -azure-ai-documentintelligence -authlib -python-dotenv -starlette \ No newline at end of file +fastapi[all] # Web framework with all extras +uvicorn # ASGI server +celery # Task queue +redis # Message broker for Celery +sqlalchemy # Database ORM +pydantic # Data validation +openai # GPT integration for metadata extraction +pymupdf # PDF processing, text extraction, and detection (imported as 'fitz') +requests # HTTP client +dropbox # Dropbox integration +azure-ai-documentintelligence # Azure OCR service +authlib # Authentication +python-dotenv # Environment variables +starlette # ASGI toolkit (used by FastAPI) \ No newline at end of file