# Utiliser une image Python officielle FROM python:3.9-slim # Définir le répertoire de travail WORKDIR /app # Copier tous les fichiers dans le conteneur COPY . /app # Installer les dépendances RUN pip install --no-cache-dir -r requirements.txt # Exposer le port sur lequel tourne Flask EXPOSE 5000 # Démarrer l'API Flask CMD ["python", "allinone.py"]