Adapt to latest origin-operator-registry image
/registry was removed from the latest origin-operator-registry image,
and the workdir was changed as well, this breaks the hco's bundle image
build.
FROM quay.io/openshift/origin-operator-registry:latest
-COPY deploy/olm-catalog /registry
+WORKDIR /registry
+
+COPY deploy/olm-catalog .
+
+USER root
# Initialize the database
-RUN initializer --manifests /registry/kubevirt-hyperconverged --output bundles.db
+RUN ["initializer", "--manifests", "/registry/kubevirt-hyperconverged", "--output", "bundles.db"]
+
+RUN ["chown", "1001", "bundles.db"]
+
+USER 1001
# There are multiple binaries in the origin-operator-registry
# We want the registry-server
