20 lines
405 B
Docker
20 lines
405 B
Docker
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Dépendances système pour ChromaDB (compilation d'extensions natives)
|
|
RUN apt-get update && apt-get install -y \
|
|
gcc \
|
|
g++ \
|
|
libffi-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
RUN mkdir -p /app/data/chromadb /app/data/docs /app/sav_knowledge
|
|
|
|
CMD ["python", "main.py"]
|