一、前提条件
1.1 硬件要求
在安装 Dify 之前,请确保您的设备符合以下最低系统要求:
- CPU >= 2 核
- RAM >= 4 GiB
1.2 安装 Docker 和 Docker Compose

1.3 安装 Git
二、克隆 Dify 仓库
2.1 添加 Dify 的远程仓库
git remote add dify https://gitee.com/dify_ai/dify.git

2.2 查看已关联的远程仓库
git remote -v

2.3 拉取 Dify 远程仓库指定 tag 的代码
获取 Dify 远程仓库的所有信息(包括 tags),这会从远程仓库下载所有 tag 和对应的提交历史。
git fetch --tags

查看可用的 tag 列表,退出输入 q
git tag -l

完整克隆 Dify 代码
git clone https://github.com/langgenius/dify.git



























