-
Notifications
You must be signed in to change notification settings - Fork 123
/
Dockerfile
18 lines (15 loc) · 931 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.18 AS builder
WORKDIR /go/src/github.com/openshift/cluster-image-registry-operator
COPY . .
RUN make build
WORKDIR /go/src/github.com/openshift/cluster-image-registry-operator/cmd/move-blobs
RUN go build -o ../../tmp/_output/bin/move-blobs
FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
COPY images/bin/entrypoint.sh /usr/bin/
COPY manifests/image-references manifests/0* /manifests/
COPY vendor/github.com/openshift/api/imageregistry/v1/**/*.crd.yaml /manifests/
COPY --from=builder /go/src/github.com/openshift/cluster-image-registry-operator/tmp/_output/bin/cluster-image-registry-operator /usr/bin/
COPY --from=builder /go/src/github.com/openshift/cluster-image-registry-operator/tmp/_output/bin/move-blobs /usr/bin/
RUN chmod -R g+w /etc/pki/ca-trust/extracted/pem/
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
LABEL io.openshift.release.operator true