Skip to content

Instantly share code, notes, and snippets.

@dhagan
Forked from mchericoni/Dockerfile
Last active November 10, 2015 21:49
Show Gist options
  • Save dhagan/a448588592a504ffb503 to your computer and use it in GitHub Desktop.
Save dhagan/a448588592a504ffb503 to your computer and use it in GitHub Desktop.
Dockerfile to build an image with Oracle Java 8
##########################################
# To run:
# curl -sSL https://gist.githubusercontent.com/sirkkalap/e87cd580a47b180a7d32/raw/d9c9ebae4f5cf64eed4676e8aedac265b5a51bfa/Install-Docker-on-Linux-Mint.sh | bash -x
##########################################
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