KJ24 commited on
Commit
9a32138
·
verified ·
1 Parent(s): 1a90bc4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -9
Dockerfile CHANGED
@@ -36,6 +36,10 @@ ENV SENTENCE_TRANSFORMERS_HOME=/tmp/hf
36
  WORKDIR /app
37
 
38
 
 
 
 
 
39
  # ===== INSTALLATION DÉPENDANCES SYSTÈME MINIMALES =====
40
 
41
  RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -47,22 +51,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
47
  && rm -rf /var/tmp/*
48
 
49
 
50
-
51
-
52
- # Forcer tokenizers 0.19.0 avant le reste pour éviter conflits
53
  RUN pip install tokenizers==0.19.0 --no-deps
54
 
55
- # Ensuite installation classique
56
-
57
-
58
- # Copier ton fichier requirements.txt dans le dossier /app
59
- COPY requirements.txt /app/
60
-
61
  # 💥 Installer les dépendances Python (sauf chonkie)
62
 
63
  RUN pip install -r requirements.txt
64
  RUN pip install --upgrade pip
65
 
 
 
66
  # ✅ Installer tokenizers MANUELLEMENT si besoin (déjà dans le fichier, mais sécurité)
67
  # RUN pip install "tokenizers==0.15.2"
68
 
 
36
  WORKDIR /app
37
 
38
 
39
+ # Copier ton fichier requirements.txt dans le dossier /app
40
+ COPY requirements.txt /app/
41
+
42
+
43
  # ===== INSTALLATION DÉPENDANCES SYSTÈME MINIMALES =====
44
 
45
  RUN apt-get update && apt-get install -y --no-install-recommends \
 
51
  && rm -rf /var/tmp/*
52
 
53
 
54
+ # 🧪 Étape 3 – Forcer tokenizers==0.19.0 avant le reste
 
 
55
  RUN pip install tokenizers==0.19.0 --no-deps
56
 
 
 
 
 
 
 
57
  # 💥 Installer les dépendances Python (sauf chonkie)
58
 
59
  RUN pip install -r requirements.txt
60
  RUN pip install --upgrade pip
61
 
62
+
63
+
64
  # ✅ Installer tokenizers MANUELLEMENT si besoin (déjà dans le fichier, mais sécurité)
65
  # RUN pip install "tokenizers==0.15.2"
66