forked from loft-sh/vcluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.cli.release
31 lines (24 loc) · 1.01 KB
/
Dockerfile.cli.release
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# we use alpine for easier debugging
FROM alpine:3.20
ARG HELM_VERSION="v3.16.2"
ARG TARGETARCH
# Set root path as working directory
WORKDIR /
# Add devspace
RUN wget -O devspace "https://github.com/loft-sh/devspace/releases/latest/download/devspace-linux-${TARGETARCH}" \
&& chmod +x devspace \
&& mv devspace /usr/local/bin/devspace
# Add helm
RUN wget -O helm3.tar.gz "https://get.helm.sh/helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz" \
&& tar -zxvf helm3.tar.gz "linux-${TARGETARCH}/helm" \
&& chmod +x "linux-${TARGETARCH}/helm" \
&& mv "linux-${TARGETARCH}/helm" /usr/local/bin/helm \
&& rm helm3.tar.gz \
&& rm -R "linux-${TARGETARCH}"
# Add kubectl
RUN wget -O kubectl https://storage.googleapis.com/kubernetes-release/release/`wget -q -O- https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/${TARGETARCH}/kubectl \
&& chmod +x kubectl \
&& mv kubectl /usr/local/bin/kubectl
ENV KUBECONFIG=/root/.kube/config
COPY vcluster /usr/local/bin/vcluster
CMD /usr/local/bin/vcluster