etm-terrain/Dockerfile

19 lines
524 B
Docker

# Bot Telegram terrain ETM — conteneur.
FROM python:3.12-slim
WORKDIR /app
# Si une dependance native echoue a s'installer (ex. chromadb / hnswlib),
# decommenter la ligne suivante :
# RUN apt-get update && apt-get install -y --no-install-recommends build-essential \
# && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Code de l'application.
# data/ et sav_knowledge/ sont exclus (.dockerignore) : ce sont des volumes.
COPY . .
CMD ["python", "main.py"]