Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -15,6 +15,9 @@ SHELL ["conda", "run", "-n", "pypdaf", "/bin/bash", "-c"]
|
|
| 15 |
COPY --chown=user ./pyPDAF/mcp_output /app/pyPDAF/mcp_output
|
| 16 |
COPY --chown=user ./requirements.txt /app/requirements.txt
|
| 17 |
|
|
|
|
|
|
|
|
|
|
| 18 |
# 安装其他依赖
|
| 19 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 20 |
|
|
|
|
| 15 |
COPY --chown=user ./pyPDAF/mcp_output /app/pyPDAF/mcp_output
|
| 16 |
COPY --chown=user ./requirements.txt /app/requirements.txt
|
| 17 |
|
| 18 |
+
# 修复导入问题:将 src.pyPDAF 替换为 pyPDAF
|
| 19 |
+
RUN sed -i 's/from src\.pyPDAF import/from pyPDAF import/g' /app/pyPDAF/mcp_output/mcp_plugin/mcp_service.py
|
| 20 |
+
|
| 21 |
# 安装其他依赖
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
|