Boozo / Dockerfile
sritharoon's picture
Update Dockerfile
a1bf106 verified
Raw History Blame Contribute Delete
626 Bytes
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"]