Hi @PrasannaVengadesan_santhanagopalan ,
I have given you an example Docker project with Java a while ago:
For other users to be able to help answer your question, you need to provide a minimal reproducible example. In this case would be a Dockerfile that you have.
Regards,
Wan.