26 lines
952 B
Docker
26 lines
952 B
Docker
# Copyright 2020 The KubeSphere Authors. All rights reserved.
|
|
# Use of this source code is governed by an Apache license
|
|
# that can be found in the LICENSE file.
|
|
FROM alpine:3.11
|
|
|
|
ARG HELM_VERSION=v3.5.2
|
|
ARG KUSTOMIZE_VERSION=v4.0.5
|
|
|
|
RUN apk add --no-cache ca-certificates
|
|
# install helm
|
|
RUN wget https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz && \
|
|
tar xvf helm-${HELM_VERSION}-linux-amd64.tar.gz && \
|
|
rm helm-${HELM_VERSION}-linux-amd64.tar.gz && \
|
|
mv linux-amd64/helm /usr/bin/ && \
|
|
rm -rf linux-amd64
|
|
# install kustomize
|
|
RUN wget https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2F${KUSTOMIZE_VERSION}/kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz && \
|
|
tar xvf kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz && \
|
|
rm kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz && \
|
|
mv kustomize /usr/bin
|
|
|
|
COPY /bin/cmd/controller-manager /usr/local/bin/
|
|
|
|
EXPOSE 8443 8080
|
|
|
|
CMD ["sh"] |