FROM python:3.11-slim WORKDIR /AAP # Change working directory to AAP # Install system dependencies RUN apt-get update && apt-get install -y \ libgl1-mesa-glx \ libglib2.0-0 \ && rm -rf /var/lib/apt/lists/* # Install Python dependencies COPY requirements.txt . RUN pip install --upgrade pip RUN pip install --no-cache-dir -r requirements.txt # Copy the application code and model COPY main.py . COPY ocr_model.h5 . # Expose the port EXPOSE 7860 # Start the application CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]