infiniflow / ragflow

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding.
https://ragflow.io
Apache License 2.0
18.18k stars 1.84k forks source link

[Question]: Failed to execute: docker build -f Dockerfile.scratch -t infiniflow/ragflow:dev . #2564

Closed xxz196801 closed 2 days ago

xxz196801 commented 3 days ago

Describe your problem

执行命令docker build -f Dockerfile.scratch -t infiniflow/ragflow:dev .时,出现 => ERROR [internal] load metadata for docker.io/library/ubuntu:24.04 错误。 image 使用命令docker pull ubuntu:24.04解决上述错误,再次执行docker build -f Dockerfile.scratch -t infiniflow/ragflow:dev .时出现如下错误:=> ERROR [production 14/16] COPY det.onnx layout.laws.onnx layout.manual.onnx layout.onnx layout.paper.onnx ocr. 0.0s。 image

xxz196801 commented 3 days ago

第一个错误出现在Dockerfile.scratch的第二十一行,LD_LIBRARY_PATH=usr/lib/x86_64-linux-gnu/openmpi/lib:$LD_LIBRARY_PATH

rplescia commented 3 days ago

I have the same issue when trying to build the image, I suggest changing this to a bug.

image

yuzhichang commented 2 days ago

@xxz196801 Look at Dockerfile.scratch:79:

# Copy models downloaded via download_deps.sh
COPY det.onnx layout.laws.onnx layout.manual.onnx layout.onnx layout.paper.onnx ocr.res rec.onnx tsr.onnx updown_concat_xgb.model /ragflow/rag/res/deepdoc/

You need to run download_deps.sh to download files at first.

JinHai-CN commented 2 days ago

@xxz196801 We intend to create an international community, so we encourage using English for communication.