mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-09-05 08:47:21 +00:00
14 lines
613 B
Docker
14 lines
613 B
Docker
# This Dockerfile must be on the top-level of this repo, because it needs to copy
|
|
# both commitchecker/ and make/ into the build container.
|
|
|
|
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS builder
|
|
WORKDIR /go/src/github.com/openshift/build-machinery-go
|
|
COPY . .
|
|
RUN make -C commitchecker
|
|
|
|
FROM registry.ci.openshift.org/ocp/4.17:base-rhel9
|
|
COPY --from=builder /go/src/github.com/openshift/build-machinery-go/commitchecker/commitchecker /usr/bin/
|
|
RUN dnf install --setopt=tsflags=nodocs -y git && \
|
|
dnf clean all && rm -rf /var/cache/yum/*
|
|
ENTRYPOINT ["/usr/bin/commitchecker"]
|