File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM public.ecr.aws/lambda/python:3.12-arm64
22
3+ # Set working directory (Lambda default)
4+ WORKDIR ${LAMBDA_TASK_ROOT}
5+
36# Install uv and create uvx symlink
47COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
58RUN ln -s /usr/local/bin/uv /usr/local/bin/uvx
69
710# Install Claude Code CLI (npm package, requires nodejs)
8- RUN dnf install -y nodejs npm && npm install -g @anthropic-ai/claude-code
11+ # hadolint ignore=DL3016,DL3041
12+ RUN dnf install -y nodejs npm && \
13+ dnf clean all && \
14+ npm install -g @anthropic-ai/claude-code
915
1016# Install Python dependencies
1117RUN uv pip install --system boto3 claude-agent-sdk
1218
1319# Copy Lambda code and ensure readable
14- COPY *.py ./
15- RUN chmod 644 *.py
20+ COPY ./ *.py ./
21+ RUN chmod 644 ./ *.py
1622
1723# Copy config files (MCP servers, SubAgents) to /opt (read-only at runtime)
1824# setup_lambda_environment() will copy to /tmp/.claude-code at runtime
You can’t perform that action at this time.
0 commit comments