I have an executable JAR that is normally executed like so:
java -jar myapp.jar I would like to "Dockerize" this app by placing it in a container, say, under /~/myapp, and then configure the container to always run this app (using the above command) when the container starts up.
Using this sample Dockerfile as a starting point, what entries do I need to add in order to get Docker to position myapp.jar correctly in the file system, and to run it at startup?
Assume that by the time I run Docker to build the image, the binary will be located under build/distributions like so:
myapp/ src/ build.gradle Dockerfile build/distributions/ myapp.jar
RUNorCMDinstruction to run the executable jar? Thanks again!