Skip to content

Instantly share code, notes, and snippets.

@wangyiyang
Created July 22, 2016 04:01
Show Gist options
  • Save wangyiyang/c262eac382a2f876a8e8f8544c3f9692 to your computer and use it in GitHub Desktop.
Save wangyiyang/c262eac382a2f876a8e8f8544c3f9692 to your computer and use it in GitHub Desktop.
oracle-java7
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