You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build_docker_image.md 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ---
  2. sidebar_position: 1
  3. slug: /build_docker_image
  4. ---
  5. # Build a RAGFlow Docker Image
  6. 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.
  7. ## Target Audience
  8. - Developers who have added new features or modified the existing code and require a Docker image to view and debug their changes.
  9. - Testers looking to explore the latest features of RAGFlow in a Docker image.
  10. ## Prerequisites
  11. - CPU ≥ 4 cores
  12. - RAM ≥ 16 GB
  13. - Disk ≥ 50 GB
  14. - Docker ≥ 24.0.0 & Docker Compose ≥ v2.26.1
  15. :::tip NOTE
  16. If you have not installed Docker on your local machine (Windows, Mac, or Linux), see the [Install Docker Engine](https://docs.docker.com/engine/install/) guide.
  17. :::
  18. ## Build a RAGFlow Docker Image
  19. To build a RAGFlow Docker image from source code:
  20. ### Git Clone the Repository
  21. ```bash
  22. git clone https://github.com/infiniflow/ragflow.git
  23. ```
  24. ### Build the Docker Image
  25. 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.
  26. ```bash
  27. cd ragflow/
  28. docker build -f Dockerfile.scratch -t infiniflow/ragflow:dev .
  29. ```