A small problem with Dockerfile

I am building a minecraft server image(server runs on port 25565). I have the local .jar and config files and I want to add them into the image. Is this right?

RUN mkdir /srv/data

COPY ./* /srv/data

(./* referred to my local .jar file. This is only a part of my Dockerfile)

By the way, I have read that I need to safely shutdown the server by using the stop command(can be executed with “mcrcon” command in: ./bin/mcrcon). But I don’t know how to add the stop command into a docker image. (I mean, I don’t know how to add a command that is executed when I request to stop a running container)

(this is my first time to write Dockerfile by myself)

It seems that nobody answers me