Public Repository

Last pushed: 2 years ago
Short Description
java7
Full Description

java 7

FROM ubuntu

Install Java.

RUN \
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
apt-get install -y software-properties-common && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java7-installer && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk7-installer

Define working directory.

WORKDIR /data

Define commonly used JAVA_HOME variable

ENV JAVA_HOME /usr/lib/jvm/java-7-oracle

Define default command.

CMD ["bash"]

Docker Pull Command
Owner
pavanyadav

Comments (0)