Skip to content

Instantly share code, notes, and snippets.

@es
Created July 16, 2014 15:29
Show Gist options
  • Save es/ba8e77092580a60f017b to your computer and use it in GitHub Desktop.
Save es/ba8e77092580a60f017b to your computer and use it in GitHub Desktop.
Oracle Java 7 Dockerfile
FROM ubuntu:12.04
# Setup basic Instance
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y python-software-properties python
RUN apt-get install -y software-properties-common
# Download Java
RUN add-apt-repository ppa:webupd8team/java
RUN apt-get update
RUN echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
RUN apt-get -y install oracle-java7-installer && apt-get clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment