Spaces:
Sleeping
Sleeping
Download Dockerfile from ShetyeRupa/DocIntel: direct link, hf CLI and curl.
- Browser
- Download file 686 Bytes
-
https://huggingface.co/spaces/ShetyeRupa/DocIntel/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ShetyeRupa/DocIntel/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ShetyeRupa/DocIntel/resolve/main/Dockerfile
686 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| tesseract-ocr \ | |
| poppler-utils \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender1 \ | |
| libgomp1 \ | |
| libxcb1 \ | |
| libxcb-shm0 \ | |
| libxcb-xfixes0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements first for caching | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application | |
| COPY . . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run the app | |
| CMD ["streamlit", "run", "app/ui/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"] | |