We do not recommend to use BitNinja and Docker (or other solution) together as this method is not fully compatible with BitNinja.
If for some reason it is inevitable to use it, then we highly recommend not to include BitNinja install script in the docker image.