javaeeduke commited on
Commit
f4ff755
·
verified ·
1 Parent(s): 1d1febb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -4
Dockerfile CHANGED
@@ -1,4 +1,13 @@
1
- FROM python:3.10
2
- RUN pip install pipx
3
- RUN pipx install https://github.com/Panniantong/agent-reach/archive/main.zip
4
- RUN agent-reach install --env=auto
 
 
 
 
 
 
 
 
 
 
1
+ FROM docker.io/library/python:3.10
2
+
3
+ # 安装基础依赖
4
+ RUN pip install --no-cache-dir pipx && pipx ensurepath
5
+
6
+ # 避坑核心:不直接安装 zip,而是克隆源码并用 editable 模式或直接源码安装
7
+ RUN git clone https://github.com/Panniantong/agent-reach.git /opt/agent-reach
8
+
9
+ # 使用 --system 允许在 Docker 根环境下直接通过 pip 强行安装,跳过 Hatchling 的重复文件检查限制
10
+ RUN pip install -e /opt/agent-reach
11
+
12
+ # 如果项目需要初始化环境,再执行它的内部指令
13
+ # RUN agent-reach install --env=auto