Docker Community Forums

Share and learn in the Docker community.

Add java8 on docker for Windows Host?


(Pcouas) #1

Hi,

Currently i have an OracleX11 docker image for windows Host
I try to add last java8 version
But /usr/java don’t exist ?

Regards
My
DockerFile

FROM oraclelinux:latest

RUN mkdir /usr/java
RUN mkdir -p /usr/java/jdk1.8.0_102

RUN yum update -y &&
curl --insecure --junk-session-cookies --location --remote-name --silent --header “Cookie: oraclelicense=accept-securebackup-cookie” http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-linux-x64.rpm &&
yum localinstall -y jdk-8u102-linux-x64.rpm &&
rm jdk-8u102-linux-x64.rpm &&
yum clean all

ENV JAVA_HOME=/usr/java/jdk1.8.0_102/
LANG=en_US.UTF-8 \