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 # Stage 1: Build dependencies
FROM python:3.11 AS builder FROM python:3.13 AS builder
WORKDIR /app WORKDIR /app
@@ -13,7 +13,7 @@ FROM python:3.13.2-slim
WORKDIR /app WORKDIR /app
# Copy installed dependencies # 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 --from=builder /usr/local/bin /usr/local/bin
# Copy application files correctly # Copy application files correctly
+14 -18
View File
@@ -1,18 +1,14 @@
fastapi[all] fastapi[all] # Web framework with all extras
uvicorn uvicorn # ASGI server
celery celery # Task queue
redis redis # Message broker for Celery
sqlalchemy sqlalchemy # Database ORM
pydantic pydantic # Data validation
boto3 openai # GPT integration for metadata extraction
pikepdf pymupdf # PDF processing, text extraction, and detection (imported as 'fitz')
openai requests # HTTP client
# Add this line explicitly dropbox # Dropbox integration
#pymupdf==1.23.5 azure-ai-documentintelligence # Azure OCR service
pymupdf authlib # Authentication
requests python-dotenv # Environment variables
dropbox starlette # ASGI toolkit (used by FastAPI)
azure-ai-documentintelligence
authlib
python-dotenv
starlette