Created
June 22, 2017 03:33
-
-
Save ericfialkowski/92fd54912cf8feda49a4c2e333e0e371 to your computer and use it in GitHub Desktop.
My oracle java 8 base image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections | |
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 seen true | /usr/bin/debconf-set-selections | |
RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee /etc/apt/sources.list.d/webupd8team-java.list | |
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 | |
RUN apt-get update | |
RUN apt-get install -y oracle-java8-installer | |
RUN rm -rf /var/cache/oracle-jdk8-installer && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* | |
RUN java -version | |
CMD ["java -version"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment