Created
September 17, 2014 23:50
-
-
Save necrobious/02901a360795465366d3 to your computer and use it in GitHub Desktop.
Docker file for getting recent Oracle JDK installed on Ubuntu 14.04
This file contains hidden or 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
# build with | |
# docker build -t 'necrobious/base-ubuntu-oracle-jdk' . | |
FROM ubuntu:14.04 | |
MAINTAINER [email protected] | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get -y update | |
RUN apt-get -y upgrade | |
RUN apt-get -y install curl | |
RUN mkdir -p /opt/jdk | |
RUN curl -LOs -H 'Cookie: oraclelicense=accept-securebackup-cookie' 'http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-x64.tar.gz' | |
RUN tar -zxf jdk-7u67-linux-x64.tar.gz -C /opt/jdk | |
RUN update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.7.0_67/bin/java 100 | |
RUN update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.7.0_67/bin/javac 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment