Spaces:
Sleeping
Sleeping
Download Dockerfile from Frederic-CellNum/api_sparrow_ocr: direct link, hf CLI and curl.
- Browser
- Download file 328 Bytes
-
https://huggingface.co/spaces/Frederic-CellNum/api_sparrow_ocr/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Frederic-CellNum/api_sparrow_ocr/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Frederic-CellNum/api_sparrow_ocr/resolve/main/Dockerfile
328 Bytes
| FROM python:3.11 | |
| WORKDIR /app | |
| # Installer les dépendances | |
| COPY requirements.txt . | |
| RUN pip install -r requirements.txt | |
| # Pré-télécharger le modèle PENDANT le build (accès réseau autorisé) | |
| COPY download_model.py . | |
| RUN python download_model.py | |
| COPY . . | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |