Spaces:
Sleeping
Sleeping
File size: 626 Bytes
99081cd 840f858 99081cd 840f858 99081cd 840f858 99081cd 840f858 99081cd 840f858 99081cd 840f858 99081cd 840f858 a1bf106 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | FROM python:3.11-slim
# Install system dependencies (Poppler for pdf2image, OpenCV libs, git, etc.)
RUN apt-get update && apt-get install -y \
poppler-utils \
libgl1 \
libglib2.0-0 \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements and install python packages
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Copy all project files
COPY . .
# HuggingFace Spaces uses port 7860
EXPOSE 7860
# Start Flask using gunicorn
CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860", "--timeout", "600"] |