Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

Commit

Permalink
Remove oc binary from Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
leo8a committed Oct 5, 2023
1 parent 1ad0845 commit f1f8dbc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ COPY cmd/ cmd/
# Build the binary
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -mod=vendor -a -o ibu-imager main.go

# Download oc CLI
RUN curl -L https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux.tar.gz \
| tar xvzf - -C . && chmod +x ./oc

# Download crio CLI
RUN curl -sL https://github.com/kubernetes-sigs/cri-tools/releases/download/$CRIO_VERSION/crictl-$CRIO_VERSION-linux-amd64.tar.gz \
| tar xvzf - -C . && chmod +x ./crictl
Expand All @@ -32,7 +28,6 @@ FROM registry.access.redhat.com/ubi9/ubi:latest
WORKDIR /

COPY --from=builder /workspace/ibu-imager .
COPY --from=builder /workspace/oc /usr/bin/
COPY --from=builder /workspace/crictl /usr/bin/

RUN yum -y install jq && \
Expand Down

0 comments on commit f1f8dbc

Please sign in to comment.