Public Repository

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description
# Java Dockerfile

# Pull base image.
#FROM ubuntu:14.04
FROM dockerfile/ubuntu

RUN apt-get update && apt-get -y install software-properties-common

# Install Java.
RUN \
  echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
  echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections && \
  add-apt-repository -y ppa:webupd8team/java && \
  apt-get update && \
  apt-get install -y oracle-java7-installer

# Set JAVA_HOME
RUN echo "export JAVA_HOME=/usr/lib/jvm/java-7-oracle" >> ~/.bashrc
RUN echo "JAVA_HOME=/usr/lib/jvm/java-7-oracle" >> /etc/environment
Docker Pull Command
Owner
parthpatil

Comments (0)