From 8e3e951df941226eb1c6930b04a8fc3fb287395c Mon Sep 17 00:00:00 2001 From: Jeroen Op 't Eynde Date: Wed, 3 Feb 2021 11:38:18 +0100 Subject: [PATCH] fix(docker): downgrade alpine images (#499) --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 77b32852f..127bf2d4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # download kubectl -FROM golang:alpine as kubectl +FROM golang:alpine3.12 as kubectl RUN apk add --no-cache curl RUN export VERSION=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) &&\ export OS=$(go env GOOS) && \ @@ -8,7 +8,7 @@ RUN export VERSION=$(curl -s https://storage.googleapis.com/kubernetes-release/r chmod +x /usr/local/bin/kubectl # build jsonnet-bundler -FROM golang:alpine as jb +FROM golang:alpine3.12 as jb WORKDIR /tmp RUN apk add --no-cache git make bash &&\ git clone https://github.com/jsonnet-bundler/jsonnet-bundler &&\ @@ -16,7 +16,7 @@ RUN apk add --no-cache git make bash &&\ make static &&\ mv _output/jb /usr/local/bin/jb -FROM golang:alpine as helm +FROM golang:alpine3.12 as helm WORKDIR /tmp/helm RUN apk add --no-cache jq curl RUN export TAG=$(curl --silent "https://api.github.com/repos/helm/helm/releases/latest" | jq -r .tag_name) &&\ @@ -26,7 +26,7 @@ RUN export TAG=$(curl --silent "https://api.github.com/repos/helm/helm/releases/ tar -xvf helm.tgz --strip-components=1 # assemble final container -FROM alpine +FROM alpine:3.12 RUN apk add --no-cache coreutils diffutils less git openssh-client COPY tk /usr/local/bin/tk COPY --from=kubectl /usr/local/bin/kubectl /usr/local/bin/kubectl