# ============================ # ✅ Dockerfile for SmartManuals-AI # ============================ FROM python:3.10-slim # Install system dependencies RUN apt-get update && apt-get install -y \ build-essential \ poppler-utils \ tesseract-ocr \ libglib2.0-0 \ libsm6 \ libxext6 \ libxrender-dev \ && apt-get clean && rm -rf /var/lib/apt/lists/* # Set work directory WORKDIR /app # Copy requirements first to leverage Docker layer caching COPY requirements.txt ./ # Install Python dependencies RUN pip install --upgrade pip && pip install -r requirements.txt # Copy rest of the application COPY . . # Expose the default Gradio port EXPOSE 7860 # Run the app CMD ["python", "app.py"]