Quellcode durchsuchen

DOCS: amend docker image building page and more hints for mac users (#5461)

### What problem does this PR solve?

Amend docker image building page and more hints for mac users

### Type of change

- [x] Documentation Update
tags/v0.17.0
Yongteng Lei vor 8 Monaten
Ursprung
Commit
a0a7b46cff
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
1 geänderte Dateien mit 33 neuen und 1 gelöschten Zeilen
  1. 33
    1
      docs/guides/develop/build_docker_image.mdx

+ 33
- 1
docs/guides/develop/build_docker_image.mdx Datei anzeigen

```bash ```bash
git clone https://github.com/infiniflow/ragflow.git git clone https://github.com/infiniflow/ragflow.git
cd ragflow/ 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 . docker build --build-arg LIGHTEN=1 -f Dockerfile -t infiniflow/ragflow:nightly-slim .
``` ```


uv run download_deps.py uv run download_deps.py
docker build -f Dockerfile.deps -t infiniflow/ragflow_deps . docker build -f Dockerfile.deps -t infiniflow/ragflow_deps .
docker build -f Dockerfile -t infiniflow/ragflow:nightly . docker build -f Dockerfile -t infiniflow/ragflow:nightly .
docker build --build-arg LIGHTEN=1 -f Dockerfile -t infiniflow/ragflow:nightly-slim .
``` ```


</TabItem> </TabItem>
</Tabs> </Tabs>

## 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 \<IP_ADDRESS\>; (the default port is \<PORT\> = 80). You will be directed to the RAGFlow welcome page. Enjoy!🍻

Laden…
Abbrechen
Speichern