Build a Docker image containing Oracle Java (Server JRE specifically).
The Oracle Java Server JRE provides the same features as Oracle Java JDK commonly required for Server-side Applications (i.e. Java EE application servers). For more information about Server JRE, visit this release notes.
Download Server JRE 8 .tar.gz
file and drop it inside folder java-8
.
Build it:
$ cd java-8
$ docker build -t oracle/serverjre:8 .
Download Server JRE 7 .tar.gz
file and drop it inside folder java-7
:
Build it:
$ cd java-7
$ docker build -t oracle/serverjre:7 .
Download Server JRE 8 .tar.gz
file and drop it inside folder windows-java-8
.
Build it:
$ cd windows-java-8
$ docker build -t oracle/serverjre:8-windowsservercore -f windowsservercore/Dockerfile .
$ docker build -t oracle/serverjre:8-nanoserver -f nanoserver/Dockerfile .
Download Server JRE 7 .tar.gz
file and drop it inside folder windows-java-7
. You also have to extract all files as there are issues adding the tar.gz
file directly.
Build it:
$ cd windows-java-7
$ tar xzf server-jre-7u80-windows-x64.tar.gz
$ docker build -t oracle/serverjre:7-windowsservercore -f windowsservercore/Dockerfile .
$ docker build -t oracle/serverjre:7-nanoserver -f nanoserver/Dockerfile .