FROM python:3.8-slim #Ne pas créer les fichiers .pyc ENV PYTHONDONTWRITEBYTECODE=1 #Afficher les logs directement dans le terminal ENV PYTHONUNBUFFERED=1 #Installation des dépendances de opencv RUN apt-get update && apt-get install -y \ ffmpeg \ libsm6 \ libxext6 \ portaudio19-dev \ python3-pyaudio \ gcc \ && rm -rf /var/lib/apt/lists/* # Installation des dépendances python COPY requirements.txt . RUN python -m pip install -r requirements.txt # Création du répertoire de travail WORKDIR /app COPY . . CMD ["python", "main.py"]