I am pretty much new to the dockers concepts. I an having the jar file of my java application and while creating the container i would need to pass the config.json file for the same. Can anyone help me with the docker file for the same. I tried using the below but the container is getting exited and i am getting the exit code 0 error .
COPY snapshot.jar /usr/app/
COPY config.json /usr/app/
Running the container with the command-
docker run -d -p 8080:8080 xyz