feat(claude): install kubectl into container image
This commit is contained in:
parent
c3c3fcd099
commit
1c01d49f51
1 changed files with 11 additions and 0 deletions
|
|
@ -8,6 +8,17 @@ RUN apk add --no-cache \
|
||||||
bash \
|
bash \
|
||||||
ttyd
|
ttyd
|
||||||
|
|
||||||
|
# Install kubectl — architecture-aware, checksum-verified
|
||||||
|
RUN KUBECTL_VERSION=$(curl -fsSL https://dl.k8s.io/release/stable.txt) \
|
||||||
|
&& ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') \
|
||||||
|
&& curl -fsSL "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl" \
|
||||||
|
-o /usr/local/bin/kubectl \
|
||||||
|
&& curl -fsSL "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl.sha256" \
|
||||||
|
-o /tmp/kubectl.sha256 \
|
||||||
|
&& echo "$(cat /tmp/kubectl.sha256) /usr/local/bin/kubectl" | sha256sum -c \
|
||||||
|
&& rm /tmp/kubectl.sha256 \
|
||||||
|
&& 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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue