Skip to content

Commit f9dee86

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 d6a9c5e commit f9dee86

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
@@ -10,15 +10,13 @@ COPY cmd cmd
1010
COPY pkg pkg
1111
COPY hack hack
1212

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

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

2019
COPY --from=BUILDER /workdir/_output/bin/mcad-controller /usr/local/bin
21-
COPY --from=BUILDER /workdir/kubectl /usr/local/bin
2220

2321
RUN true \
2422
&& microdnf update \

0 commit comments

Comments
 (0)