Spaces:
Build error
Build error
Download Dockerfile from imenebenzerga99/web_space: direct link, hf CLI and curl.
- Browser
- Download file 711 Bytes
-
https://huggingface.co/spaces/imenebenzerga99/web_space/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/imenebenzerga99/web_space/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/imenebenzerga99/web_space/resolve/main/Dockerfile
711 Bytes
| # Image de base Python 3.13.3 (légère et stable) | |
| FROM python:3.13.3-slim | |
| # Définition du répertoire de travail | |
| WORKDIR /projectweb | |
| # Installation des dépendances système (pour Tesseract, etc.) | |
| RUN apt-get update && apt-get install -y \ | |
| tesseract-ocr \ | |
| libgl1-mesa-glx \ | |
| libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copie des fichiers de dépendances | |
| COPY requirements.txt . | |
| # Installation des dépendances Python | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copie du code source | |
| COPY web_space.py . | |
| # Exposition du port (FastAPI utilise 8001 par défaut) | |
| EXPOSE 8001 | |
| # Commande de démarrage | |
| CMD ["uvicorn", "main:app","--host 0.0.0.0"," --port 8001", "web_space.space"] |