Public Repository

Last pushed: 2 years ago
Short Description
Oracle JDK8 on Ubuntu
Full Description

This image contains Oracle JDK8u40 on top of an Ubuntu14:04.

# Setting base image
FROM ubuntu

# Installing pre-requisites for downloading java
RUN apt-get -f install
RUN apt-get install -y wget

# Download Oracle java 8
RUN wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u40-b26/jdk-8u40-linux-x64.tar.gz
RUN apt-get clean
# Create directories for install
RUN mkdir /opt/jdk

# Extracting java tar
RUN tar -zxf jdk-8u40-linux-x64.tar.gz -C /opt/jdk; rm jdk-8u40-linux-x64.tar.gz

ENV JAVA_HOME=/opt/jdk/jdk1.8.0_40
ENV PATH=$JAVA_HOME/bin:$PATH

RUN echo $JAVA_HOME
RUN echo $PATH
Docker Pull Command
Owner
josediaz30

Comments (0)