Here’s the steps:
Make your current directory to that of docker file’s directory.
Run:
docker build -t java-app .
Run:
docker run java-app java Main
Here’s the steps:
Make your current directory to that of docker file’s directory.
Run: docker build -t java-app .
Run: docker run java-app java Main