I'm going to walk through it to learn docker.
This project is my first java application using docker.
$ docker build -f Dockerfile -t sample/hello-world-java:1 .
$ docker run --rm -v $PWD:/app -w /app sample/hello-world-java:1 javac Main.java
$ docker run --rm -v $PWD:/app -w /app sample/hello-world-java:1 java Main
This project is my first python application using docker.
Nagigate top-level directory you created and type following command if you want to try this app.
$ docker-compose up
$ docker-compose down