diff --git a/docs/guides/develop/build_docker_image.mdx b/docs/guides/develop/build_docker_image.mdx index 728954e3c..d85780205 100644 --- a/docs/guides/develop/build_docker_image.mdx +++ b/docs/guides/develop/build_docker_image.mdx @@ -42,6 +42,8 @@ While we also test RAGFlow on ARM64 platforms, we do not maintain RAGFlow Docker ```bash git clone https://github.com/infiniflow/ragflow.git cd ragflow/ +uv run download_deps.py +docker build -f Dockerfile.deps -t infiniflow/ragflow_deps . docker build --build-arg LIGHTEN=1 -f Dockerfile -t infiniflow/ragflow:nightly-slim . ``` @@ -61,8 +63,38 @@ cd ragflow/ uv run download_deps.py docker build -f Dockerfile.deps -t infiniflow/ragflow_deps . docker build -f Dockerfile -t infiniflow/ragflow:nightly . -docker build --build-arg LIGHTEN=1 -f Dockerfile -t infiniflow/ragflow:nightly-slim . ``` + +## Launch a RAGFlow Service from Docker for MacOS + +After building the infiniflow/ragflow:nightly-slim image, you are ready to launch a fully-functional RAGFlow service with all the required components, such as Elasticsearch, MySQL, MinIO, Redis, and more. + +## Example: Apple M2 Pro (Sequoia) + +1. Edit Docker Compose Configuration + +Open the `docker/docker-compose-base.yml` file. Find the `infinity.image` setting and change the image reference from `infiniflow/infinity:v0.6.0-dev3` to `infiniflow/ragflow:nightly-slim` to use the pre-built image. + +```yaml +infinity: + container_name: ragflow-infinity + image: infiniflow/ragflow:nightly-slim # here + volumes: + - ... + - ... + ... +``` + +2. Launch the Service + +```bash +cd docker +$ docker compose -f docker-compose-macos.yml up -d +``` + +3. Access the RAGFlow Service + +Once the setup is complete, open your web browser and navigate to http://127.0.0.1 or your server's \; (the default port is \ = 80). You will be directed to the RAGFlow welcome page. Enjoy!🍻 \ No newline at end of file