Hey there, I’m getting started with docker.
I’m trying to run a java application using dockerfile.
Here’s my dockerfile :
MAINTAINER Maryem […]
COPY . /my/path/to/the/java_application
CMD [“java”, “cmd_to_run”, “-jar”, “/my/path/to/the/java_application/file.jar”, “other_cmd_to_run_my_jar”]
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
I’m stuck in this problem.
any help is much appreciated.