Removed kubectl download

This commit is contained in:
Jonathan Ervine 2020-12-16 13:54:49 +08:00
parent 3d6ed7237a
commit eba056a70f

View File

@ -13,8 +13,6 @@ RUN apk update && \
adduser -D python && \ adduser -D python && \
mkdir /data && cd /data && git clone --single-branch --branch issue-#1 https://git.ervine.org/jonny/flask-python-helm /data && \ mkdir /data && cd /data && git clone --single-branch --branch issue-#1 https://git.ervine.org/jonny/flask-python-helm /data && \
pip3 install -r /data/requirements.txt && \ pip3 install -r /data/requirements.txt && \
curl -L "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl" -o /usr/local/bin/kubectl && \
chmod 755 /usr/local/bin/kubectl && \
curl -L https://get.helm.sh/helm-v3.4.2-linux-amd64.tar.gz -o /tmp/helm.tgz && \ curl -L https://get.helm.sh/helm-v3.4.2-linux-amd64.tar.gz -o /tmp/helm.tgz && \
tar -zxvf /tmp/helm.tgz --strip-components=1 -C /usr/local/bin linux-amd64/helm && \ tar -zxvf /tmp/helm.tgz --strip-components=1 -C /usr/local/bin linux-amd64/helm && \
rm -rf /tmp/src && rm -rf /var/cache/apk/* rm -rf /tmp/src && rm -rf /var/cache/apk/*