Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix Docker image building failure on MacOS (ARM architecture) (#1177)

Zhedong Cen747e69ef6874
diff --git a/Dockerfile b/Dockerfile
index 1fa29ad91b..2da41e2873 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -10,6 +10,7 @@ ADD ./api ./api
ADD ./conf ./conf
ADD ./deepdoc ./deepdoc
ADD ./rag ./rag
+ADD ./graph ./graph
ENV PYTHONPATH=/ragflow/
ENV HF_ENDPOINT=https://hf-mirror.com
diff --git a/Dockerfile.arm b/Dockerfile.arm
index a157c030c3..b64401e187 100644
--- a/Dockerfile.arm
+++ b/Dockerfile.arm
@@ -12,7 +12,7 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
- apt-get install -y nodejs nginx ffmpeg libsm6 libxext6 libgl1
+ apt-get install -y --fix-missing nodejs nginx ffmpeg libsm6 libxext6 libgl1
ADD ./web ./web
RUN cd ./web && npm i --force && npm run build
@@ -21,6 +21,7 @@ ADD ./api ./api
ADD ./conf ./conf
ADD ./deepdoc ./deepdoc
ADD ./rag ./rag
+ADD ./graph ./graph
ENV PYTHONPATH=/ragflow/
ENV HF_ENDPOINT=https://hf-mirror.com
diff --git a/Dockerfile.scratch b/Dockerfile.scratch
index eb0594087b..a607b63bc1 100644
--- a/Dockerfile.scratch
+++ b/Dockerfile.scratch
@@ -30,6 +30,7 @@ ADD ./conf ./conf
ADD ./deepdoc ./deepdoc
ADD ./rag ./rag
ADD ./requirements.txt ./requirements.txt
+ADD ./graph ./graph
RUN apt install openmpi-bin openmpi-common libopenmpi-dev
ENV LD_LIBRARY_PATH /usr/lib/x86_64-linux-gnu/openmpi/lib:$LD_LIBRARY_PATH
diff --git a/Dockerfile.scratch.oc9 b/Dockerfile.scratch.oc9
index 414ccddf32..9053343866 100644
--- a/Dockerfile.scratch.oc9
+++ b/Dockerfile.scratch.oc9
@@ -30,6 +30,7 @@ ADD ./conf ./conf
ADD ./deepdoc ./deepdoc
ADD ./rag ./rag
ADD ./requirements.txt ./requirements.txt
+ADD ./graph ./graph
RUN dnf install -y openmpi openmpi-devel python3-openmpi
ENV C_INCLUDE_PATH /usr/include/openmpi-x86_64:$C_INCLUDE_PATH
diff --git a/requirements_arm.txt b/requirements_arm.txt
index c52c08cd10..4cb4d83e86 100644
--- a/requirements_arm.txt
+++ b/requirements_arm.txt
@@ -85,9 +85,9 @@ pyarrow==15.0.0
pyarrow-hotfix==0.6
pyclipper==1.3.0.post5
pycparser==2.21
-pycryptodome==3.20.0
-pycryptodome-test-vectors==1.0.14
-pycryptodomex==3.20.0
+pycryptodome
+pycryptodome-test-vectors
+pycryptodomex
pydantic==2.6.2
pydantic_core==2.16.3
PyJWT==2.8.0
@@ -98,7 +98,6 @@ python-dateutil==2.8.2
python-docx==1.1.0
python-dotenv==1.0.1
python-pptx==0.6.23
-pytz==2024.1
PyYAML==6.0.1
redis==5.0.3
regex==2023.12.25
@@ -140,6 +139,8 @@ volcengine==1.0.141
opencv-python-headless==4.9.0.80
readability-lxml==0.8.1
html_text==0.6.2
+selenium==4.21.0
+webdriver-manager==4.0.1
cn2an==0.5.22
roman-numbers==1.0.2
word2number==1.1
\ No newline at end of file