FROM quay.io/operator-framework/upstream-opm-builder

# Will be injected by OpenshiftCI
RUN pwd
COPY database/index.db /database/index.db

EXPOSE 50051
ENTRYPOINT ["/bin/opm"]
CMD ["registry", "serve", "--database", "/database/index.db"]

LABEL operators.operatorframework.io.index.database.v1=/database/index.db
