I am getting the following error when trying to run a docker container:
Error: Unable to access jarfile
My Dockerfile is like this:
I was able to resolve this by adding this to the bottom ENTRYPOINT ["java","-jar","repo-connector-1.5.4.jar"]
CMD ["-start"]
Could you please check the response of : "RUN ls -la /home/smartling/flagship/repo-connector-1.5.4/"
Check if the file(repo-connector-1.5.4.jar) is having the required permission to run. If not please use chmod and grant the jar the permission.
Command is as follow:
RUN ["chmod", "+x", "/home/smartling/flagship/repo-connector-1.5.4/repo-connector-1.5.4.jar"]
Place the above command after # Making sure the files are there
RUN ls -la /home/smartling/flagship/repo-connector-1.5.4/