How to deploy containerized java application given jar file and a config.json file

Hi,

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 .

Docker File-

FROM openjdk:8u232
COPY snapshot.jar /usr/app/
COPY config.json /usr/app/
WORKDIR /usr/app/
EXPOSE 8080
ENTRYPOINT [“java”,"-jar","-Dlogging.config=config.json",“snapshot.jar”]

Running the container with the command-
docker run -d -p 8080:8080 xyz