fix(claude): use gid/uid 1001 for claude user
node:20-alpine reserves gid/uid 1000 for its built-in node user, causing addgroup to fail. Shift claude to 1001.
This commit is contained in:
parent
ba3730a24d
commit
0800e4a084
1 changed files with 3 additions and 3 deletions
|
|
@ -11,9 +11,9 @@ RUN apk add --no-cache \
|
||||||
# Entrypoint used by the webui service (ttyd wrapping claude)
|
# Entrypoint used by the webui service (ttyd wrapping claude)
|
||||||
COPY --chmod=755 webui-entrypoint.sh /usr/local/bin/webui-entrypoint.sh
|
COPY --chmod=755 webui-entrypoint.sh /usr/local/bin/webui-entrypoint.sh
|
||||||
|
|
||||||
# Create non-root user
|
# Create non-root user (node:20-alpine reserves gid/uid 1000 for the node user)
|
||||||
RUN addgroup -g 1000 claude \
|
RUN addgroup -g 1001 claude \
|
||||||
&& adduser -u 1000 -G claude -s /bin/bash -D claude
|
&& adduser -u 1001 -G claude -s /bin/bash -D claude
|
||||||
|
|
||||||
# Install Claude Code globally (runs as root for npm -g, then drops)
|
# Install Claude Code globally (runs as root for npm -g, then drops)
|
||||||
RUN npm install -g @anthropic-ai/claude-code
|
RUN npm install -g @anthropic-ai/claude-code
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue