mirror of
https://git.roussel.pro/telecom-paris/pact.git
synced 2026-02-09 02:20:17 +01:00
27 lines
597 B
Docker
27 lines
597 B
Docker
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"]
|