# Use a base image FROM python:3.10-slim # Install system dependencies, including poppler-utils RUN apt-get update && apt-get install -y \ poppler-utils \ && apt-get clean # Install Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy your app COPY . /app WORKDIR /app # Expose the app on port 7860 EXPOSE 7860 # Run the Gradio app CMD ["python", "app.py"]