Spaces:
Runtime error
Runtime error
Download Dockerfile from rajvivan/FalconScan: direct link, hf CLI and curl.
- Browser
- Download file 502 Bytes
-
https://huggingface.co/spaces/rajvivan/FalconScan/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rajvivan/FalconScan/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rajvivan/FalconScan/resolve/main/Dockerfile
502 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 FALCONSCAN_OCR_ENABLED=true FALCONSCAN_OCR_ENGINE=fast | |
| RUN apt-get update && apt-get install -y --no-install-recommends libgl1 libglib2.0-0 libgomp1 tesseract-ocr tesseract-ocr-ara && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install -r requirements.txt | |
| COPY . . | |
| RUN useradd -m -u 1000 user && chown -R user:user /app | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |