FROM python:3.11-slim # Install system dependencies RUN apt-get update && apt-get install -y \ poppler-utils \ gcc \ && rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Copy all files COPY . . # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose port EXPOSE 7860 # Start the API server CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]