Spaces:
Runtime error
Runtime error
Download Dockerfile from dev-models/ocr-build001: direct link, hf CLI and curl.
- Browser
- Download file 572 Bytes
-
https://huggingface.co/spaces/dev-models/ocr-build001/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dev-models/ocr-build001/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dev-models/ocr-build001/resolve/main/Dockerfile
572 Bytes
| FROM pytorch/pytorch:latest | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| WORKDIR /app | |
| # System deps for OpenCV / OCR | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip install --upgrade pip | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --prefer-binary -r requirements.txt | |
| # Copy backend + frontend | |
| COPY backend ./backend | |
| COPY frontend ./frontend | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "backend.main.app:app", "--host", "0.0.0.0", "--port", "7860"] |