chore: update Python version in Dockerfile and enhance requirements.txt with comments

This commit is contained in:
Christian Krakau-Louis
2025-03-29 03:56:04 +01:00
parent 8f96eabb7d
commit 6f5ec7bd14
2 changed files with 16 additions and 20 deletions
+2 -2
View File
@@ -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
+14 -18
View File
@@ -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
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)