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
Another way to run it could be with a shell file.
CMD ["/bin/bash", "-ex", "run.sh"]
and in your run.sh file you can run the javac and java commands.