Deploying flowable modeler application with custom database connectivity

Hi,

I am trying to deploy flowable all in one docker image in our cloud environment. But to connect to the database we are not using regular username and password, Instead we are using Azure Managed Identity to generate JWT token in the runtime and use that as a password to connect to database. To do so I had to write seperate java file to generate the token and use that as a password to connect to flowable database. Now can you please help me how to create a docker image from the docker all in one image which uses my custom db configuration and custom java code to connect to the database.

Thanks,
Srikanth