Spaces:
Sleeping
Sleeping
Download Dockerfile from ChiloAi/Chilo_AI-API: direct link, hf CLI and curl.
- Browser
- Download file 515 Bytes
-
https://huggingface.co/spaces/ChiloAi/Chilo_AI-API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ChiloAi/Chilo_AI-API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ChiloAi/Chilo_AI-API/resolve/main/Dockerfile
515 Bytes
| # Utilise l'image officielle de Python 3.10 | |
| FROM python:3.10 | |
| # Définit le répertoire de travail du conteneur | |
| WORKDIR /app | |
| # Copie le fichier des dépendances et installe les paquets | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copie le reste du code de l'application | |
| COPY . . | |
| # Expose le port 7860 (port par défaut pour les Spaces) | |
| EXPOSE 7860 | |
| # Démarre l'application FastAPI avec Uvicorn | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |