Spaces:
Sleeping
Sleeping
Download Dockerfile from sritharoonhf/Boozo: direct link, hf CLI and curl.
- Browser
- Download file 626 Bytes
-
https://huggingface.co/spaces/sritharoonhf/Boozo/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sritharoonhf/Boozo/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sritharoonhf/Boozo/resolve/main/Dockerfile
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"] |