Skip to content

Commit 0fb504c

Browse files
committed
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 <kpostlet@redhat.com>
1 parent 7171e8e commit 0fb504c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@ COPY pkg pkg
1111
COPY hack hack
1212
COPY CONTROLLER_VERSION CONTROLLER_VERSION
1313

14-
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
1514
ENV GO_BUILD_ARGS=$GO_BUILD_ARGS
1615
RUN echo "Go build args: $GO_BUILD_ARGS" && \
1716
make mcad-controller
1817

1918
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
2019

2120
COPY --from=BUILDER /workdir/_output/bin/mcad-controller /usr/local/bin
22-
COPY --from=BUILDER /workdir/kubectl /usr/local/bin
2321

2422
RUN true \
2523
&& microdnf update \

0 commit comments

Comments
 (0)