Created
July 8, 2014 00:10
-
-
Save KAllan357/a650b74aa2a750b773ba to your computer and use it in GitHub Desktop.
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:14.04 | |
RUN apt-get update && apt-get install wget -y | |
WORKDIR /tmp | |
RUN ["wget", "--no-cookies", "--no-check-certificate", "--header", "Cookie: oraclelicense=accept-securebackup-cookie", \ | |
"http://download.oracle.com/otn-pub/java/jdk/7u60-b19/jdk-7u60-linux-x64.tar.gz", "-O", "jdk-7-linux-x64.tar.gz"] | |
RUN tar -xvf jdk-7* && mkdir /usr/lib/jvm && mv ./jdk1.7* /usr/lib/jvm/jdk1.7.0u60 \ | |
&& update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0u60/bin/java" 1 \ | |
&& update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0u60/bin/javac" 1 \ | |
&& update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.7.0u60/bin/javaws" 1 \ | |
&& rm jdk-7-linux-x64.tar.gz | |
RUN chmod a+x /usr/bin/java && chmod a+x /usr/bin/javac && chmod a+x /usr/bin/javaws |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment