chore: update Python version in Dockerfile and enhance requirements.txt with comments
This commit is contained in:
+2
-2
@@ -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
@@ -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)
|
||||
Reference in New Issue
Block a user