Java Dockerfile. Also published to public Docker Registry.
-
Install Docker
-
Download image from public Docker Registry:
docker pull dockerize/java
or build an image from the Dockerfile:
docker build -t dockerize/java github.com/dockerize/java
docker run -it --rm dockerize/java
Run java
docker run -it --rm dockerize/java java
Run javac
docker run -it --rm dockerize/java javac