rkonan commited on
Commit
22e7a08
·
1 Parent(s): 8bea8c3

correction dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -11,8 +11,12 @@ RUN apt-get update && apt-get install -y \
11
  libsqlite3-dev \
12
  libgl1 \
13
  libglib2.0-0 \
 
14
  && rm -rf /var/lib/apt/lists/*
15
 
 
 
 
16
  # 📁 Étape 3 : répertoire de travail
17
  WORKDIR /code
18
 
@@ -23,7 +27,7 @@ COPY requirements.txt .
23
  RUN pip install --no-cache-dir --upgrade pip setuptools wheel \
24
  && pip install --no-cache-dir --prefer-binary -r requirements.txt
25
 
26
- # 📁 Étape 6 : copier le code de l'app
27
  COPY . .
28
 
29
  # 🌐 Étape 7 : exposer le port Streamlit
 
11
  libsqlite3-dev \
12
  libgl1 \
13
  libglib2.0-0 \
14
+ libomp-dev \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
+ # 🏠 Fix Streamlit PermissionError (écriture dans /.streamlit interdite)
18
+ ENV HOME="/code"
19
+
20
  # 📁 Étape 3 : répertoire de travail
21
  WORKDIR /code
22
 
 
27
  RUN pip install --no-cache-dir --upgrade pip setuptools wheel \
28
  && pip install --no-cache-dir --prefer-binary -r requirements.txt
29
 
30
+ # 📁 Étape 6 : copier tout le code de l'app
31
  COPY . .
32
 
33
  # 🌐 Étape 7 : exposer le port Streamlit