From f9dee86fe40e5674136e914659af80072217a6dd Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 28 Jun 2023 09:48:18 -0400 Subject: [PATCH] remove kubectl installation from Dockerfile kubectl doesn't seem to be in use anywhere within the code, so removing it from the Dockerfile should simplify the image creation and shrink the image size somewhat Signed-off-by: Kevin --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index acbe1a9ca..d3f4cc5d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,6 @@ COPY cmd cmd COPY pkg pkg COPY hack hack -RUN cd /workdir && curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/$(go env GOARCH)/kubectl && chmod +x kubectl ENV GO_BUILD_ARGS=$GO_BUILD_ARGS RUN echo "Go build args: $GO_BUILD_ARGS" && \ make mcad-controller @@ -18,7 +17,6 @@ RUN echo "Go build args: $GO_BUILD_ARGS" && \ FROM registry.access.redhat.com/ubi8/ubi-minimal:latest COPY --from=BUILDER /workdir/_output/bin/mcad-controller /usr/local/bin -COPY --from=BUILDER /workdir/kubectl /usr/local/bin RUN true \ && microdnf update \