it builds successfully, but when I try to run using the command docker run -i -t maryem/my_app docker cannot locate some files that the jar file is using. I specified the path to these files in conf.txt that i putted in my application folder.
I don’t know if there is another way to tell docker how to call files in conf.txt
did you find a solution for this?
I’m looking for a way to execute java -jar app.jar server config.yml I have tried variations of CMD but the java command is not executed
Thanks for replying. Yes, I had it like that. But when I was executing docker run using that image I was expecting a java process executed inside of the container (I was looking using ps aux | grep java) and there was no java process running. Anyway it is running in the host.