fixed Dockerfile
Some checks failed
Build and push k8s-workflow-image / build (push) Failing after 6s
Some checks failed
Build and push k8s-workflow-image / build (push) Failing after 6s
This commit is contained in:
parent
7f37f3d346
commit
74381bdc46
14
Dockerfile
14
Dockerfile
@ -1,10 +1,14 @@
|
|||||||
FROM alpine:3.19
|
FROM alpine:3.19
|
||||||
|
|
||||||
# Install kubectl and helm
|
RUN apk add --no-cache curl bash ca-certificates
|
||||||
RUN apk add --no-cache curl bash ca-certificates && \
|
|
||||||
curl -LO "https://dl.k8s.io/release/$(curl -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
|
# 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 && \
|
||||||
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
|
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
|
||||||
rm kubectl && \
|
rm kubectl
|
||||||
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
|
||||||
|
# Install Helm
|
||||||
|
RUN curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/sh"]
|
ENTRYPOINT ["/bin/sh"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user