Skip to content

Commit

Permalink
fix(docker): downgrade alpine images (grafana#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duologic authored Feb 3, 2021
1 parent c82644e commit 8e3e951
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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) && \
Expand All @@ -8,15 +8,15 @@ 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 &&\
cd jsonnet-bundler &&\
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) &&\
Expand All @@ -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
Expand Down

0 comments on commit 8e3e951

Please sign in to comment.