FRANCKYPRO commited on
Commit
2c11297
·
verified ·
1 Parent(s): 5d7ed13

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -2
Dockerfile CHANGED
@@ -1,8 +1,14 @@
 
 
1
  FROM python:3.12-slim
2
 
 
3
  WORKDIR /app
4
 
5
- # Installer les dépendances système nécessaires pour build et audio
 
 
 
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  cmake \
@@ -19,7 +25,8 @@ COPY requirements.txt ./
19
  RUN pip install --upgrade pip
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
 
22
  COPY app.py ./
23
 
24
- # Commande par défaut pour Streamlit
25
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
1
+
2
+ # Base Python 3.12 slim
3
  FROM python:3.12-slim
4
 
5
+ # Définir le répertoire de travail
6
  WORKDIR /app
7
 
8
+ # Définir un répertoire temporaire pour matplotlib afin d'éviter les permissions
9
+ ENV MPLCONFIGDIR=/tmp/.matplotlib
10
+
11
+ # Installer les dépendances système nécessaires pour mediapipe, audio et build
12
  RUN apt-get update && apt-get install -y \
13
  build-essential \
14
  cmake \
 
25
  RUN pip install --upgrade pip
26
  RUN pip install --no-cache-dir -r requirements.txt
27
 
28
+ # Copier le code source
29
  COPY app.py ./
30
 
31
+ # Définir la commande par défaut pour Streamlit
32
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]