Spaces:
Sleeping
Sleeping
Download Dockerfile from martper56/square-api: direct link, hf CLI and curl.
- Browser
- Download file 359 Bytes
-
https://huggingface.co/spaces/martper56/square-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/martper56/square-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/martper56/square-api/resolve/main/Dockerfile
359 Bytes
| # Base image | |
| FROM python:3.9-slim | |
| # Définir le dossier de travail | |
| WORKDIR /app | |
| # Copier les fichiers nécessaires | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| # Exposer le port pour Hugging Face | |
| EXPOSE 7860 | |
| # Lancer l'application avec uvicorn | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |