Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions agent-sdk-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ WORKDIR ${LAMBDA_TASK_ROOT}
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
RUN ln -s /usr/local/bin/uv /usr/local/bin/uvx

# Install Claude Code CLI (npm package, requires nodejs)
# hadolint ignore=DL3016,DL3041
RUN dnf install -y nodejs npm && \
# Install Node.js 20+ (required for MCP's undici dependency)
# hadolint ignore=DL3016,DL3041,DL4006
RUN curl -fsSL https://rpm.nodesource.com/setup_20.x | bash - && \
dnf install -y nodejs && \
dnf clean all && \
npm install -g @anthropic-ai/claude-code

# Fix npm cache permissions for Lambda
RUN mkdir -p /tmp/.npm && chmod -R 777 /tmp/.npm
ENV npm_config_cache=/tmp/.npm

# Install Python dependencies
RUN uv pip install --system boto3 claude-agent-sdk

Expand Down