forked from metal3-io/cluster-api-provider-baremetal
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathDockerfile
More file actions
16 lines (14 loc) · 714 Bytes
/
Dockerfile
File metadata and controls
16 lines (14 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS builder
WORKDIR /go/src/github.com/openshift/cluster-api-provider-baremetal
COPY . .
RUN go build --mod=vendor -o machine-controller-manager ./cmd/manager
FROM registry.ci.openshift.org/ocp/4.22:base-rhel9
#RUN INSTALL_PKGS=" \
# libvirt-libs openssh-clients genisoimage \
# " && \
# yum install -y $INSTALL_PKGS && \
# rpm -V $INSTALL_PKGS && \
# yum clean all
COPY --from=builder /go/src/github.com/openshift/cluster-api-provider-baremetal/machine-controller-manager /
COPY --from=builder /go/src/github.com/openshift/cluster-api-provider-baremetal/manifests /manifests
LABEL io.openshift.release.operator=true