File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,12 +7,17 @@ WORKDIR ${LAMBDA_TASK_ROOT}
77COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
88RUN ln -s /usr/local/bin/uv /usr/local/bin/uvx
99
10- # Install Claude Code CLI (npm package, requires nodejs)
11- # hadolint ignore=DL3016,DL3041
12- RUN dnf install -y nodejs npm && \
10+ # Install Node.js 20+ (required for MCP's undici dependency)
11+ # hadolint ignore=DL3016,DL3041,DL4006
12+ RUN curl -fsSL https://rpm.nodesource.com/setup_20.x | bash - && \
13+ dnf install -y nodejs && \
1314 dnf clean all && \
1415 npm install -g @anthropic-ai/claude-code
1516
17+ # Fix npm cache permissions for Lambda
18+ RUN mkdir -p /tmp/.npm && chmod -R 777 /tmp/.npm
19+ ENV npm_config_cache=/tmp/.npm
20+
1621# Install Python dependencies
1722RUN uv pip install --system boto3 claude-agent-sdk
1823
You can’t perform that action at this time.
0 commit comments