Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -14
Dockerfile
CHANGED
|
@@ -50,9 +50,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 50 |
# Copier ton fichier requirements.txt dans le dossier /app
|
| 51 |
COPY requirements.txt /app/
|
| 52 |
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
-
|
| 55 |
-
|
|
|
|
| 56 |
|
| 57 |
|
| 58 |
# ✅ Installation Chonkie compatible 'chunk_hierarchy'
|
|
@@ -60,16 +64,7 @@ RUN sed -i '/tokenizers==/d' requirements.txt
|
|
| 60 |
# RUN pip install git+https://github.com/chonkie-inc/chonkie.git
|
| 61 |
|
| 62 |
|
| 63 |
-
|
| 64 |
-
# Installer toutes les dépendances sauf tokenizers
|
| 65 |
-
RUN pip install -r requirements.txt
|
| 66 |
-
|
| 67 |
-
# Installer version compatible manuellement
|
| 68 |
-
RUN pip install "tokenizers==0.18.0"
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
# Cloner Chonkie et patcher chunk_hierarchy localement
|
| 73 |
RUN git clone https://github.com/chonkie-inc/chonkie.git /tmp/chonkie && \
|
| 74 |
cd /tmp/chonkie && \
|
| 75 |
git checkout v1.0.10 && \
|
|
@@ -78,8 +73,6 @@ RUN git clone https://github.com/chonkie-inc/chonkie.git /tmp/chonkie && \
|
|
| 78 |
pip install .
|
| 79 |
|
| 80 |
|
| 81 |
-
|
| 82 |
-
|
| 83 |
RUN pip uninstall -y sentence-transformers && \
|
| 84 |
pip install sentence-transformers==2.6.1
|
| 85 |
|
|
|
|
| 50 |
# Copier ton fichier requirements.txt dans le dossier /app
|
| 51 |
COPY requirements.txt /app/
|
| 52 |
|
| 53 |
+
# 💥 Installer les dépendances Python (sauf chonkie)
|
| 54 |
+
RUN pip install --upgrade pip
|
| 55 |
+
RUN pip install -r requirements.txt
|
| 56 |
|
| 57 |
+
|
| 58 |
+
# ✅ Installer tokenizers MANUELLEMENT si besoin (déjà dans le fichier, mais sécurité)
|
| 59 |
+
RUN pip install "tokenizers==0.18.0"
|
| 60 |
|
| 61 |
|
| 62 |
# ✅ Installation Chonkie compatible 'chunk_hierarchy'
|
|
|
|
| 64 |
# RUN pip install git+https://github.com/chonkie-inc/chonkie.git
|
| 65 |
|
| 66 |
|
| 67 |
+
# ✅ Installer Chonkie v1.0.10 avec patch automatique du paramètre chunk_hierarchy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
RUN git clone https://github.com/chonkie-inc/chonkie.git /tmp/chonkie && \
|
| 69 |
cd /tmp/chonkie && \
|
| 70 |
git checkout v1.0.10 && \
|
|
|
|
| 73 |
pip install .
|
| 74 |
|
| 75 |
|
|
|
|
|
|
|
| 76 |
RUN pip uninstall -y sentence-transformers && \
|
| 77 |
pip install sentence-transformers==2.6.1
|
| 78 |
|