ragflow
ragflow copied to clipboard
[Feature Request]: Provide docker image for Mac with ARM
Is there an existing issue for the same feature request?
- [X] I have checked the existing issues.
Is your feature request related to a problem?
No response
Describe the feature you'd like
There are several builtin models depending on PyTorch, ONNXRuntime,...,etc, which requires extra works for migrating.
Describe implementation you've considered
No response
Documentation, adoption, use case
No response
Additional information
No response
@KevinHuSh pls give some instructions to build mac images.
ragflow/Dockerfile.scratch has every necessary steps to build an image.
Hi. I tried using Dockerfile.scratch and the image was not built successfully. Would you mind writing detailed instructions on how to set up on Mac with ARM?
The Dockerfile.scratch file has many issues. For example, it points to the wrong URL for Miniconda3. It should be something like this: https://repo.anaconda.com/miniconda/Miniconda3-py311_24.3.0-0-MacOSX-arm64.sh, instead of the "... latest-Linux-x86_64 ..." used in the script. The latest version of Miniconda3 uses Python3.12, and consequently, some of the libraries included in the requirements are incompatible, as they require Python3.11 at most.
I tried to run it on Oracle's ARM host and rebuild docker image. I removed some packages which isn't supported on ARM platform such as Aspose.Slides and N-card. Therefore, Some features won't work any more, for example, Powerpoint file isn't support any more. Updated requirements.txt and Dockerfile.scratch are attached. requirements.txt Dockerfile.scratch.txt
I tried to run it on Oracle's ARM host and rebuild docker image. I removed some packages which isn't supported on ARM platform such as Aspose.Slides and N-card. Therefore, Some features won't work any more, for example, Powerpoint file isn't support any more. Updated requirements.txt and Dockerfile.scratch are attached. requirements.txt Dockerfile.scratch.txt
it works!
I tried to run it on Oracle's ARM host and rebuild docker image. I removed some packages which isn't supported on ARM platform such as Aspose.Slides and N-card. Therefore, Some features won't work any more, for example, Powerpoint file isn't support any more. Updated requirements.txt and Dockerfile.scratch are attached. requirements.txt Dockerfile.scratch.txt
Excuse me. How to run zhe docker image with the changed files? I just known how to use docker compose run the program in the docker folder
does it support mps on Mac M1 chip?
Having trouble running ragflow on M3 Silicon Mac or even building the docker:
docker build --no-cache -t infiniflow/ragflow:dev -f Dockerfile.arm .
Output:
Dockerfile.arm:7
--------------------
6 | COPY requirements_arm.txt /ragflow/requirements.txt
7 | >>> RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ --default-timeout=1000 -r requirements.txt &&\
8 | >>> python -c "import nltk;nltk.download('punkt');nltk.download('wordnet')"
9 |
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install -i https://mirrors.aliyun.com/pypi/simple/ --default-timeout=1000 -r requirements.txt &&python -c \"import nltk;nltk.download('punkt');nltk.download('wordnet')\"" did not complete successfully: exit code: 1
View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/fvay1k2wtt4fzbb2yijrj0r2t
Has the issue been resolved?
Having trouble running ragflow on M3 Silicon Mac or even building the docker:
docker build --no-cache -t infiniflow/ragflow:dev -f Dockerfile.arm .
Output:
Dockerfile.arm:7 -------------------- 6 | COPY requirements_arm.txt /ragflow/requirements.txt 7 | >>> RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ --default-timeout=1000 -r requirements.txt &&\ 8 | >>> python -c "import nltk;nltk.download('punkt');nltk.download('wordnet')" 9 | -------------------- ERROR: failed to solve: process "/bin/sh -c pip install -i https://mirrors.aliyun.com/pypi/simple/ --default-timeout=1000 -r requirements.txt &&python -c \"import nltk;nltk.download('punkt');nltk.download('wordnet')\"" did not complete successfully: exit code: 1 View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/fvay1k2wtt4fzbb2yijrj0r2t
same here, and
ERROR [linux/amd64 internal] load metadata for docker.io/library/python:3.11
any idea ?