use new native install

This commit is contained in:
docker-claude 2026-04-15 19:18:39 +02:00
parent ab7e909c3c
commit 1b141b200c
3 changed files with 20 additions and 19 deletions

0
build.sh Normal file → Executable file
View file

View file

@ -2,22 +2,22 @@ FROM node:20-alpine
# Install runtime dependencies # Install runtime dependencies
RUN apk add --no-cache \ RUN apk add --no-cache \
git \ git \
curl \ curl \
ca-certificates \ ca-certificates \
bash \ bash \
ttyd ttyd
# Install kubectl — architecture-aware, checksum-verified # Install kubectl — architecture-aware, checksum-verified
RUN KUBECTL_VERSION=$(curl -fsSL https://dl.k8s.io/release/stable.txt) \ RUN KUBECTL_VERSION=$(curl -fsSL https://dl.k8s.io/release/stable.txt) \
&& ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') \ && ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') \
&& curl -fsSL "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl" \ && curl -fsSL "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl" \
-o /usr/local/bin/kubectl \ -o /usr/local/bin/kubectl \
&& curl -fsSL "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl.sha256" \ && curl -fsSL "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl.sha256" \
-o /tmp/kubectl.sha256 \ -o /tmp/kubectl.sha256 \
&& echo "$(cat /tmp/kubectl.sha256) /usr/local/bin/kubectl" | sha256sum -c \ && echo "$(cat /tmp/kubectl.sha256) /usr/local/bin/kubectl" | sha256sum -c \
&& rm /tmp/kubectl.sha256 \ && rm /tmp/kubectl.sha256 \
&& chmod +x /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl
# 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
@ -27,21 +27,22 @@ COPY --chmod=755 webui-entrypoint.sh /usr/local/bin/webui-entrypoint.sh
COPY settings.json /etc/claude-code/managed-settings.json COPY settings.json /etc/claude-code/managed-settings.json
# Install Claude Code globally # Install Claude Code globally
RUN npm install -g @anthropic-ai/claude-code RUN curl -fsSL https://claude.ai/install.sh | bash
# Install MCP servers globally — entry points land in /usr/local/lib/node_modules/ # Install MCP servers globally — entry points land in /usr/local/lib/node_modules/
RUN npm install -g \ RUN npm install -g \
@modelcontextprotocol/server-github \ @modelcontextprotocol/server-github \
@yoda.digital/gitlab-mcp-server \ @yoda.digital/gitlab-mcp-server \
@aashari/mcp-server-atlassian-jira \ @aashari/mcp-server-atlassian-jira \
@aashari/mcp-server-atlassian-confluence @aashari/mcp-server-atlassian-confluence
# Workspace and Claude config dir — owned by the built-in node user (uid 1000). # Workspace and Claude config dir — owned by the built-in node user (uid 1000).
# Pre-creating ~/.claude ensures the named volume is initialised with the # Pre-creating ~/.claude ensures the named volume is initialised with the
# correct ownership when first mounted (Docker copies image content into # correct ownership when first mounted (Docker copies image content into
# an empty named volume on first use). # an empty named volume on first use).
RUN mkdir -p /workspace /home/node/.claude \ RUN mkdir -p /workspace /home/node/.claude \
&& chown -R node:node /workspace /home/node/.claude && chown -R node:node /workspace /home/node/.claude
USER node USER node
WORKDIR /workspace WORKDIR /workspace

0
hooks/pre-commit Normal file → Executable file
View file