All checks were successful
Build and push k8s-workflow-image / build (push) Successful in 36s
31 lines
921 B
Docker
31 lines
921 B
Docker
FROM alpine
|
|
|
|
ARG HELM_VERSION=3.18.0
|
|
ARG KUBECTL_VERSION=1.17.5
|
|
|
|
# Determine architecture
|
|
RUN case `uname -m` in \
|
|
x86_64) ARCH=amd64 ;; \
|
|
armv7l) ARCH=arm ;; \
|
|
aarch64) ARCH=arm64 ;; \
|
|
ppc64le) ARCH=ppc64le ;; \
|
|
s390x) ARCH=s390x ;; \
|
|
*) echo "Unsupported arch" && exit 1 ;; \
|
|
esac && echo "ARCH=$ARCH" > /envfile
|
|
|
|
# Install Helm and kubectl
|
|
RUN . /envfile && \
|
|
apk add --no-cache curl ca-certificates bash && \
|
|
curl -sL https://get.helm.sh/helm-v${HELM_VERSION}-linux-${ARCH}.tar.gz | tar -xz && \
|
|
mv linux-${ARCH}/helm /usr/bin/helm && chmod +x /usr/bin/helm && rm -rf linux-${ARCH} && \
|
|
curl -sLO https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl && \
|
|
mv kubectl /usr/bin/kubectl && chmod +x /usr/bin/kubectl
|
|
|
|
# Install Node.js
|
|
RUN apk update && apk add --no-cache nodejs npm
|
|
|
|
# Install git
|
|
RUN apk update && apk add --no-cache git
|
|
|
|
WORKDIR /apps
|