Created
July 22, 2016 04:01
-
-
Save wangyiyang/c262eac382a2f876a8e8f8544c3f9692 to your computer and use it in GitHub Desktop.
oracle-java7
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 phusion/baseimage:latest | |
MAINTAINER flurdy | |
ENV DEBIAN_FRONTEND noninteractive | |
# accept-java-license | |
RUN echo /usr/bin/debconf shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections | |
RUN apt-get update && \ | |
apt-get install -yq python-software-properties && \ | |
add-apt-repository ppa:webupd8team/java && \ | |
apt-get remove -yq python-software-properties && \ | |
apt-get autoremove -yq && \ | |
apt-get clean -yq && \ | |
rm -rf /var/lib/apt/lists/* | |
RUN apt-get update && \ | |
apt-get install -yq oracle-java7-installer oracle-java7-set-default && \ | |
apt-get autoremove -yq && \ | |
apt-get clean -yq && \ | |
rm -rf /var/lib/apt/lists/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment