Delete Helm and Kustomize binaries in Dockerfile (#5041)

remove helm and kustomize binary file
This commit is contained in:
nio
2022-07-08 13:40:36 +08:00
committed by GitHub
parent 45a062593f
commit 9818aafa65
2 changed files with 1 additions and 23 deletions

View File

@@ -5,9 +5,6 @@
# Download dependencies
FROM alpine:3.11 as base_os_context
ARG TARGETARCH
ARG TARGETOS
ARG HELM_VERSION=v3.5.2
ENV OUTDIR=/out
RUN mkdir -p ${OUTDIR}/usr/local/bin/
@@ -16,10 +13,6 @@ WORKDIR /tmp
RUN apk add --no-cache ca-certificates
# install helm
ADD https://get.helm.sh/helm-${HELM_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz /tmp
RUN tar xvzf /tmp/helm-${HELM_VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz -C /tmp
RUN mv /tmp/${TARGETOS}-${TARGETARCH}/helm ${OUTDIR}/usr/local/bin/
# Build
FROM golang:1.16.3 as build_context