Valdeuck-final / Dockerfile
bsalvan's picture
Update Dockerfile
0dfb358 verified
Raw History Blame Contribute Delete
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"]