Created
June 11, 2018 02:59
-
-
Save pingrunhuang/76fa558e5c857fc32e97c2dbd929e29f to your computer and use it in GitHub Desktop.
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
| RUN curl -LO 'http://download.oracle.com/otn-pub/java/jdk/7u71-b14/jdk-7u71-linux-x64.rpm' -H 'Cookie: oraclelicense=accept-securebackup-cookie' | |
| RUN rpm -i jdk-7u71-linux-x64.rpm | |
| RUN rm jdk-7u71-linux-x64.rpm | |
| ENV JAVA_HOME /usr/java/default | |
| ENV PATH $PATH:$JAVA_HOME/bin | |
| RUN rm /usr/bin/java && ln -s $JAVA_HOME/bin/java /usr/bin/java |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment