Spaces:
Running
Running
Download Dockerfile from bsalvan/Valdeuck-final: direct link, hf CLI and curl.
- Browser
- Download file 806 Bytes
-
https://huggingface.co/spaces/bsalvan/Valdeuck-final/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/bsalvan/Valdeuck-final/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bsalvan/Valdeuck-final/resolve/main/Dockerfile
806 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Installation des outils système nécessaires | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Installation des bibliothèques Python | |
| RUN python -m pip install --no-cache-dir --upgrade pip && \ | |
| python -m pip install --no-cache-dir \ | |
| fastapi \ | |
| "uvicorn[standard]" \ | |
| langchain \ | |
| langchain-community \ | |
| langchain-huggingface \ | |
| langchain-chroma \ | |
| chromadb \ | |
| sentence-transformers \ | |
| pypdf \ | |
| requests \ | |
| beautifulsoup4 \ | |
| jinja2 \ | |
| huggingface-hub \ | |
| edge-tts \ | |
| openai | |
| # Copie des fichiers de l'application | |
| COPY . /app | |
| # Port utilisé par Hugging Face Spaces | |
| EXPOSE 7860 | |
| # Lancement de l'API | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |