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...
build the image
docker build -t imagename .
run it(mounting Helloworld.java to container)
docker run -it -v ~/system-path:/javafolder imagename
type these commands to execute inside container-
cd javafolder
javac HelloWorld.java
java HelloWorld