# Use a lightweight Python version FROM python:3.10-slim # Set the working directory WORKDIR /app # 1. Install System Tools (Updated package names for Debian Trixie) RUN apt-get update && apt-get install -y \ tesseract-ocr \ poppler-utils \ libgl1 \ libglib2.0-0 \ && rm -rf /var/lib/apt/lists/* # ... (the rest of your Dockerfile remains the same) # 2. Install Python Dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # 3. Copy Application Code COPY . . # 4. Download Model (ensures it is there) #RUN python download_model.py # 5. Start the Server CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]