Skip to content
Open
Show file tree
Hide file tree
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
13 changes: 12 additions & 1 deletion claude-agent-sdk/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
FROM node:20-slim

# Install dependencies for codebase search
# Install dependencies: git/curl/grep for codebase search + ripgrep for the SDK's
# Grep tool; python3/make/g++ to build better-sqlite3's native binding.
RUN apt-get update && apt-get install -y \
git \
curl \
grep \
ripgrep \
python3 \
make \
g++ \
&& rm -rf /var/lib/apt/lists/*

# Create non-root user for running the application
Expand All @@ -27,6 +32,12 @@ RUN npm install
# Copy application code
COPY --chown=claude:claude . .

# Create the audit directory owned by claude BEFORE the ai-support-audit named
# volume mounts over it, so the fresh volume inherits claude ownership. Otherwise
# Docker mounts it root-owned and the durable audit append (AUDIT_LOG_PATH)
# silently fails for the non-root claude user.
RUN mkdir -p /app/audit && chown claude:claude /app/audit

# Copy entrypoint script
COPY --chown=claude:claude entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
Expand Down
Loading