Skip to content

Instantly share code, notes, and snippets.

@mchericoni
Created February 26, 2015 13:33
Show Gist options
  • Save mchericoni/b3284f12f1b3dd76c6df to your computer and use it in GitHub Desktop.
Save mchericoni/b3284f12f1b3dd76c6df to your computer and use it in GitHub Desktop.
Dockerfile to build an image with Oracle Java 8
FROM ubuntu:14.04
RUN apt-get update
RUN apt-get install software-properties-common -y
RUN add-apt-repository ppa:webupd8team/java -y
RUN apt-get update
RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
RUN apt-get install oracle-java8-installer -y
RUN apt-get install oracle-java8-set-default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment