modification du container interface admin

replacé apache par next start
This commit is contained in:
Quentin Roussel
2023-04-12 00:54:25 +02:00
parent 52436ee18d
commit 0e8c27e200
6 changed files with 59 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
FROM python:3.8
FROM python:3.8-slim
#Ne pas créer les fichiers .pyc
ENV PYTHONDONTWRITEBYTECODE=1
@@ -6,14 +6,21 @@ ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
#Installation des dépendances de opencv
RUN apt-get update
RUN apt-get install ffmpeg libsm6 libxext6 portaudio19-dev python3-pyaudio pulseaudio -y
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 . /app
COPY . .
CMD ["python", "main.py"]