Environment setup is such a hassle – might as well use the official container image and place the source code inside it. This way, you can develop with VS Code's remote feature. Simple and efficient —— Translated by DeepSeek
-
build and start dev-debug container:
./build.sh $ragflow_version $dev_debug_version $http_proxy_on_host $container_external_sshServer_port $root_pwd
example:
./build.sh v0.19.0 v0.19.0 http://192.168.0.161:7890 2222 root
-
start dependent services:
cd ragflow/docker docker compose -f docker-compose.yml down -v docker compose -f docker-compose.yml up -d
-
docker logs --tail 100 -f $dev_debug_container_id
, wait for ouptput: "dev debug container ready!" -
connect to the dev-debug container using vs code remote
-
source code absolute path:
/ragflow
-
entrypoints:
api/ragflow_server.py
rag/svr/task_executor.py