Spaces:
Runtime error
Runtime error
Download Dockerfile from digitaljof/Projet-Rakuten-Titan: direct link, hf CLI and curl.
- Browser
- Download file 625 Bytes
-
https://huggingface.co/spaces/digitaljof/Projet-Rakuten-Titan/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/digitaljof/Projet-Rakuten-Titan/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/digitaljof/Projet-Rakuten-Titan/resolve/main/Dockerfile
625 Bytes
| # On utilise une version légère de Python | |
| FROM python:3.10-slim | |
| # On se met dans le dossier de l'app | |
| WORKDIR /app | |
| # On copie tout ton projet dedans | |
| COPY . . | |
| # On installe les outils système (Git LFS est vital pour tes gros modèles) | |
| RUN apt-get update && apt-get install -y git git-lfs && git lfs install | |
| # On installe tes librairies Python | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # IMPORTANT : Hugging Face écoute sur le port 7860 (pas 8501) | |
| EXPOSE 7860 | |
| # La commande de lancement (On force le port 7860) | |
| CMD ["streamlit", "run", "src/streamlit/app.py", "--server.port=7860", "--server.address=0.0.0.0"] |