Hi I\'m new to Docker and trying out to write a new image from the scratch. I am writing this dockerFile to compile and run a simple java program available in the same directory
You can either use CMD or ENTRYPOINT.
Sample :
CMD ["sh", "-c", "java -jar Service.jar"]