mirror of
https://git.roussel.pro/telecom-paris/pact.git
synced 2026-02-09 02:20:17 +01:00
21 lines
486 B
Docker
21 lines
486 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
|
|
RUN apt-get install ffmpeg libsm6 libxext6 -y
|
|
|
|
# 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 . /app
|
|
|
|
CMD ["python", "main.py"]
|