Skip to content

Commit e612237

Browse files
committed
fix: 重定向cache目录到/tmp解决Lambda权限问题
设置XDG_CACHE_HOME=/tmp/.cache,解决Claude CLI创建MCP日志目录时的权限错误
1 parent 490361d commit e612237

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

agent-sdk-server/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,7 @@ RUN mkdir -p /root/.claude/projects /root/.claude/debug /root/.claude/todos /roo
2424
chmod -R 777 /root/.claude /root/.claude.json /root/.aws
2525

2626
ENV HOME=/root
27+
# Redirect cache to /tmp (Lambda only allows writes to /tmp)
28+
ENV XDG_CACHE_HOME=/tmp/.cache
2729

2830
CMD ["handler.lambda_handler"]

0 commit comments

Comments
 (0)