In Kibana 4.3, using
server.basePath is really useful to reverse proxy Kibana inside another website. However, when the base path is changed (from the default), the first time Kibana is started it will rebuild the static bundle files with a message like "Optimizing and caching bundles for kibana and statusPage. This may take a few minutes".
This is actually taking about 30 seconds in my server and raises the memory usage to 600MB. I'm using Docker containers using the official Kibana image.
I'm wondering how can I avoid such dynamic bundle compilation, and deliver a Docker image with the proper static files already built. Is there any way to force the compilation of these files without starting the server?