OpenJDK

# Install prerequisites
 apt-get update
RUN apt-get install -y software-properties-common

# Install java8
 add-apt-repository -y ppa:webupd8team/java
 apt-get update
#Instalar el openjdk
apt install openjdk-8-jre

apt install openjdk-8-jdk

#Ver la version instalada
java -version

Last updated