Spaces:
Sleeping
Sleeping
Download Dockerfile from ClementGERARD/Polyfit: direct link, hf CLI and curl.
- Browser
- Download file 433 Bytes
-
https://huggingface.co/spaces/ClementGERARD/Polyfit/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ClementGERARD/Polyfit/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ClementGERARD/Polyfit/resolve/main/Dockerfile
433 Bytes
| FROM python:3.10-slim | |
| # Crée un répertoire de travail | |
| WORKDIR /code | |
| # Copie les dépendances | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copie tout le projet (pas seulement app/) | |
| COPY . . | |
| # Ajoute le chemin /code au PYTHONPATH | |
| ENV PYTHONPATH=/code | |
| # Expose le port utilisé par uvicorn | |
| EXPOSE 7860 | |
| # Lance l'application | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |