Regarding the second suggestion of using "--no-optimize" flag: Do you know how it influence kibana? And where would you pass this argument in your Dockerfile? To the kibana executable?
If you can’t increase the size of the NodeJS heap, unpack SG and move it manually into the kibana/plugins folder. This way, Kibana does optimization while starting.