Skip to content
Open
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: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
FROM node:22 AS script

WORKDIR /build
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm install
RUN npm run build


FROM python:3.11-alpine3.23 AS server

# Install Node.js for Claude Code CLI (required by claude-agent-sdk)
RUN apk add --no-cache nodejs npm \
&& npm install -g @anthropic-ai/claude-code
&& npm install -g @anthropic-ai/claude-code@2.1.37
Comment thread
yodem marked this conversation as resolved.

# Create managed settings for Claude Code CLI (system-level config)
# Ensure appuser (UID 1001) can read; chmod before switching to non-root
RUN mkdir -p /etc/claude-code \
&& echo '{}' > /etc/claude-code/managed-settings.json \
&& chmod -R a+rX /etc/claude-code

# set user as non-root with a known UID for Kubernetes
RUN adduser -D -u 1001 appuser \
Expand Down