How to add new script while configuring cmd and entrypoint

My company asked me to configure a docker image. It has cmd parameter as:

"Cmd": [
            "#(nop) ",
            "ENTRYPOINT [\"java\" \"-jar\" \"/opt/app.jar\" \"--server.port=8090\"]"

and entrypoint as :

"Entrypoint": [

I want to run an addition shell script during start up. How should I configure this? Did tons of research but I am really confused about why there is an “Entrypoint” inside “Cmd”.


You could wrap the entrypoint in a script, that runs the commands you need, and then the java part last.