1# Install JDK 8 and Git 2# 3RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && ${'\\'} 4 echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee /etc/apt/sources.list.d/webupd8team-java.list && ${'\\'} 5 echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list && ${'\\'} 6 apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 7 8RUN apt-get update && apt-get -y install ${'\\'} 9 git ${'\\'} 10 libapr1 ${'\\'} 11 oracle-java8-installer ${'\\'} 12 && ${'\\'} 13 apt-get clean && rm -r /var/cache/oracle-jdk8-installer/ 14 15ENV JAVA_HOME /usr/lib/jvm/java-8-oracle 16ENV PATH $PATH:$JAVA_HOME/bin 17 18