ci: update Dockerfile to clean apt lists after install
@@ -50,11 +50,13 @@ RUN apt-get update && apt-get -y install unzip && \
rm /tmp/vault.zip && \
apt-get -y remove unzip
-# install kubectl and helm for k8s-* tests
+# install kubectl for k8s-related jobs
RUN curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \
touch /etc/apt/sources.list.d/kubernetes.list && \
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list && \
apt-get update && \
- apt-get install -y kubectl jq && \
- curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
+ apt-get install --no-install-recommends -y kubectl && \
+ rm -rf /var/lib/apt/lists/*
+# install helm for k8s-related jobs
+RUN curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
