Spaces:
Runtime error
Runtime error
Download Dockerfile.sync from DidierHernandez/p14bis: direct link, hf CLI and curl.
- Browser
- Download file 792 Bytes
-
https://huggingface.co/spaces/DidierHernandez/p14bis/resolve/main/Dockerfile.sync
- Command line
-
hf download hf://spaces/DidierHernandez/p14bis/Dockerfile.sync
-
curl -L -o Dockerfile.sync https://huggingface.co/spaces/DidierHernandez/p14bis/resolve/main/Dockerfile.sync
792 Bytes
| # ce fichier Dockerfile.sync à la racine | |
| # Didier : Dockerfile du conteneur de synchronisation HF / Local pour le projet14bis | |
| # Ce conteneur ultra-léger embarque une base Python et la bibliothèque officielle huggingface_hub | |
| # afin de lier dynamiquement le port aléatoire de Bore aux variables d'environnement de HF. | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Didier : Installation exclusive du paquet de communication officiel Hugging Face, pas de superflu | |
| RUN pip install --no-cache-dir huggingface_hub==0.28.1 | |
| # Copie du script logique conçu à l'étape 3 | |
| COPY sync_bore.py . | |
| # Didier : Utilisation du drapeau '-u' pour forcer Python à envoyer les logs en temps réel | |
| # dans la console Docker sans utiliser de mémoire tampon intermédiaire | |
| ENTRYPOINT ["python", "-u", "sync_bore.py"] |