sidebar_position: 1
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.
:::tip NOTE If you have not installed Docker on your local machine (Windows, Mac, or Linux), see the Install Docker Engine guide. :::
To build a RAGFlow Docker image from source code:
git clone https://github.com/infiniflow/ragflow.git
Navigate to the ragflow directory where the Dockerfile and other necessary files are located. Now you can build the Docker image using the provided Dockerfile. The command below specifies which Dockerfile to use and tages the image with a name for reference purpose.
cd ragflow/
docker build -f Dockerfile.scratch -t infiniflow/ragflow:dev .