Build a Docker image containing Oracle JDK (Server JRE specifically):
Download Server JRE 8 .tar.gz
file and drop it inside folder java-8
.
Build it:
$ cd java-8
$ docker build -t oracle/jdk:8 .
Download Server JRE 7 .tar.gz
file and drop it inside folder java-7
:
Build it:
$ cd java-7
$ docker build -t oracle/jdk:7 .