Public Repository

Last pushed: a year ago
Short Description
java 8 in ubuntu
Full Description

FROM ubuntu:14.04
MAINTAINER Hernansote hernan.saab@verizon.com

RUN \
apt-get update && apt-get -y upgrade && apt-get -y install software-properties-common && \
add-apt-repository ppa:webupd8team/java -y && apt-get update

Install Java.

RUN \
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
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
hernansote

Comments (0)