Public Repository

Last pushed: 2 years ago
Short Description
Oracle JDK7 on Ubuntu
Full Description
# Setting base image
FROM ubuntu

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

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

# Extracting java tar
RUN tar -zxvf jdk-7u79-linux-x64.tar.gz -C /opt/jdk; rm jdk-7u79-linux-x64.tar.gz

ENV JAVA_HOME=/opt/jdk/jdk1.7.0_79
ENV PATH=$JAVA_HOME/bin:$PATH

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

Comments (0)