This commit is contained in:
parent
74381bdc46
commit
96f7aadd5a
@ -3,8 +3,7 @@ FROM alpine:3.19
|
||||
RUN apk add --no-cache curl bash ca-certificates
|
||||
|
||||
# Install kubectl
|
||||
RUN KUBECTL_VERSION=$(curl -s https://dl.k8s.io/release/stable.txt) && \
|
||||
curl -LO https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \
|
||||
RUN curl -LO "https://dl.k8s.io/release/$(curl -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
|
||||
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
|
||||
rm kubectl
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user