is here a way to start optimizing step during the build explicitly and stop kibana directly after it is done?
I want to prepare a custom image of kibana docker container. Due to some config changes kibana is runnning the optimizer task on first start of container. That increases the startup time of first run.
So I want to move this step to image creation process. And kibana should terminate afterwards just like when installing plugins. But not all installations of kibana are using plugins, so I need another way.