Spaces:
Runtime error
Runtime error
Download Dockerfile from TheShellMaster/cypher-coder: direct link, hf CLI and curl.
- Browser
- Download file 536 Bytes
-
https://huggingface.co/spaces/TheShellMaster/cypher-coder/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/TheShellMaster/cypher-coder/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/TheShellMaster/cypher-coder/resolve/main/Dockerfile
536 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Installer les dépendances système nécessaires | |
| RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* | |
| # Copier et installer les packages Python | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir -r /app/requirements.txt | |
| # Copier le code de l'application | |
| COPY . /app | |
| # Exposer le port de l'application (7860) | |
| EXPOSE 7860 | |
| # Lancer le serveur Uvicorn avec notre application FastAPI | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |