Skip to content

Commit

Permalink
Merge pull request #13 from TJM/fix/jq-vuln
Browse files Browse the repository at this point in the history
fix: jq vulnerability
  • Loading branch information
Tommy McNeely authored Jan 11, 2022
2 parents 5996122 + 126b2b9 commit 490cbb1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ FROM vault:1.9.2
ARG KUBECTL_VERSION="stable"

# Add more dependencies
RUN apk add --no-cache jq bash curl openssl \
&& [ "${KUBECTL_VERSION}" = "stable" ] && KUBECTL_VERSION=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) \
&& curl -LO "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" \
&& chmod +x ./kubectl \
&& mv ./kubectl /usr/local/bin/kubectl
RUN apk add --no-cache bash \
&& [ "${KUBECTL_VERSION}" = "stable" ] && KUBECTL_VERSION=$(wget -O - https://storage.googleapis.com/kubernetes-release/release/stable.txt) \
&& cd /usr/local/bin \
&& wget "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" \
&& chmod +x /usr/local/bin/kubectl

USER vault
CMD bash

0 comments on commit 490cbb1

Please sign in to comment.