Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +13 -4
Dockerfile
CHANGED
|
@@ -1,4 +1,13 @@
|
|
| 1 |
-
FROM python:3.10
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|