Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.84 KB

README.md

File metadata and controls

46 lines (36 loc) · 1.84 KB

Oracle Java on Docker

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.

Java 8

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 .

Java 7

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 .

Windows

Java 8

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 .

Java 7

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 .