Public Repository

Last pushed: 2 years ago
Short Description
ubuntu+java8
Full Description

#java 8

Pull base image.

FROM ubuntu

Install Java.

RUN \
echo oracle-java8-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-java8-installer && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer

Define working directory.

WORKDIR /data

Define commonly used JAVA_HOME variable

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

Define default command.

CMD ["bash"]

Docker Pull Command
Owner
pavanyadav