Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions openshift/Dockerfile.openshift
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ WORKDIR /build
COPY . .
RUN GO111MODULE=on CGO_ENABLED=0 GOOS=${GOOS} GOPROXY=${GOPROXY} go build \
-ldflags="-w -s -X 'main.version=${VERSION}'" \
-o=cluster-api-controller-manager \
-o=manager \
main.go

FROM registry.ci.openshift.org/ocp/4.21:base-rhel9

LABEL description="Cluster API Controller Manager"

COPY --from=builder /build/cluster-api-controller-manager /bin/cluster-api-controller-manager
COPY --from=builder /build/manager /manager
COPY --from=builder /build/openshift/manifests /manifests

ENTRYPOINT [ "/bin/cluster-api-controller-manager" ]
ENTRYPOINT [ "/manager" ]

LABEL io.openshift.release.operator true