RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
build multi-arch image (#2710)
Zhichang Yuabe9995a7c22
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 1d438fb235..4ea516b588 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -48,7 +48,8 @@ jobs:- name: Build ragflow:dev-slimrun: |RUNNER_WORKSPACE_PREFIX=${RUNNER_WORKSPACE_PREFIX:-$HOME}- cp -r ${RUNNER_WORKSPACE_PREFIX}/huggingface.co ${RUNNER_WORKSPACE_PREFIX}/nltk_data ${RUNNER_WORKSPACE_PREFIX}/*.tar.gz .+ cp -r ${RUNNER_WORKSPACE_PREFIX}/huggingface.co ${RUNNER_WORKSPACE_PREFIX}/nltk_data .+ sudo docker pull ubuntu:24.04sudo docker build -f Dockerfile.slim -t infiniflow/ragflow:dev-slim .- name: Build ragflow:devdiff --git a/Dockerfile b/Dockerfileindex 235473f75e..c9418b154e 100644--- a/Dockerfile+++ b/Dockerfile@@ -2,6 +2,7 @@FROM ubuntu:24.04 AS baseUSER root+ARG ARCH=amd64ENV LIGHTEN=0WORKDIR /ragflow@@ -21,13 +22,11 @@ RUN --mount=type=cache,id=ragflow_base_apt,target=/var/cache/apt,sharing=locked&& pip3 install --user --break-system-packages poetry-plugin-pypi-mirror --index-url https://pypi.tuna.tsinghua.edu.cn/simple/ \&& rm -rf /var/lib/apt/lists/*-RUN --mount=type=bind,source=openssl-1.1.1w.tar.gz,target=/root/openssl-1.1.1w.tar.gz \- echo '/usr/local/lib' >> /etc/ld.so.conf.d/local.conf \- && echo '/usr/local/lib64' >> /etc/ld.so.conf.d/local.conf \- && cd /root && tar xzf openssl-1.1.1w.tar.gz \- && cd openssl-1.1.1w && ./config --prefix=/usr/local/openssl11 --openssldir=/usr/local/openssl11 shared \- && make -j && make install \- && ldconfig && cd /root && rm -rf openssl-1.1.1w+# https://forum.aspose.com/t/aspose-slides-for-net-no-usable-version-of-libssl-found-with-linux-server/271344/13+# aspose-slides on linux/arm64 is unavailable+RUN if [ "${ARCH}" = "amd64" ]; then \+ curl -o libssl1.deb http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb && dpkg -i libssl1.deb && rm -f libssl1.deb; \+ fiENV PYTHONDONTWRITEBYTECODE=1 DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1diff --git a/Dockerfile.slim b/Dockerfile.slimindex 6a656d5d48..4517ba95e6 100644--- a/Dockerfile.slim+++ b/Dockerfile.slim@@ -2,6 +2,7 @@FROM ubuntu:24.04 AS baseUSER root+ARG ARCH=amd64ENV LIGHTEN=1WORKDIR /ragflow@@ -21,13 +22,11 @@ RUN --mount=type=cache,id=ragflow_base_apt,target=/var/cache/apt,sharing=locked&& pip3 install --user --break-system-packages poetry-plugin-pypi-mirror --index-url https://pypi.tuna.tsinghua.edu.cn/simple/ \&& rm -rf /var/lib/apt/lists/*-RUN --mount=type=bind,source=openssl-1.1.1w.tar.gz,target=/root/openssl-1.1.1w.tar.gz \- echo '/usr/local/lib' >> /etc/ld.so.conf.d/local.conf \- && echo '/usr/local/lib64' >> /etc/ld.so.conf.d/local.conf \- && cd /root && tar xzf openssl-1.1.1w.tar.gz \- && cd openssl-1.1.1w && ./config --prefix=/usr/local/openssl11 --openssldir=/usr/local/openssl11 shared \- && make -j && make install \- && ldconfig && cd /root && rm -rf openssl-1.1.1w+# https://forum.aspose.com/t/aspose-slides-for-net-no-usable-version-of-libssl-found-with-linux-server/271344/13+# aspose-slides on linux/arm64 is unavailable+RUN if [ "${ARCH}" = "amd64" ]; then \+ curl -o libssl1.deb http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb && dpkg -i libssl1.deb && rm -f libssl1.deb; \+ fiENV PYTHONDONTWRITEBYTECODE=1 DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1diff --git a/download_deps.py b/download_deps.pyindex 265515c2b8..8f855f3667 100644--- a/download_deps.py+++ b/download_deps.py@@ -3,11 +3,6 @@from huggingface_hub import snapshot_downloadimport nltkimport os-import urllib.request--urls = [- "https://github.com/openssl/openssl/releases/download/OpenSSL_1_1_1w/openssl-1.1.1w.tar.gz",-]repos = ["InfiniFlow/text_concat_xgb_v1.0",@@ -25,12 +20,6 @@ def download_model(repo_id):if __name__ == "__main__":- for url in urls:- filename = url.split("/")[-1]- print(f"Downloading {url}...")- if not os.path.exists(filename):- urllib.request.urlretrieve(url, filename)-local_dir = os.path.abspath('nltk_data')for data in ['wordnet', 'punkt', 'punkt_tab']:print(f"Downloading nltk {data}...")