docs/develop/build_docker_image.mdx
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
A guide explaining how to build a RAGFlow Docker image from its source code. By following this guide, you'll be able to create a local Docker image that can be used for development, debugging, or testing purposes.
This image is approximately 2 GB in size and relies on external LLM and embedding services.
:::danger IMPORTANT
linux/arm64 or darwin/arm64 host machine as well.xgboost version in pyproject.toml to 1.6.0 and ensure unixODBC is properly installed.
:::git clone https://github.com/infiniflow/ragflow.git
cd ragflow/
uv run python3 download_deps.py
docker build -f Dockerfile.deps -t infiniflow/ragflow_deps .
docker build -f Dockerfile -t infiniflow/ragflow:nightly .
After building the infiniflow/ragflow:nightly image, you are ready to launch a fully-functional RAGFlow service with all the required components, such as Elasticsearch, MySQL, MinIO, Redis, and more.
Open the docker/.env file. Find the RAGFLOW_IMAGE setting and change the image reference from infiniflow/ragflow:v0.25.1 to infiniflow/ragflow:nightly to use the pre-built image.
cd docker
$ docker compose -f docker-compose-macos.yml up -d
Once the setup is complete, open your web browser and navigate to http://127.0.0.1 or your server's <IP_ADDRESS>; (the default port is <PORT> = 80). You will be directed to the RAGFlow welcome page. Enjoy!🍻