|
@@ -24,9 +24,10 @@ FROM ubuntu:trusty
|
|
|
|
|
|
WORKDIR /root
|
|
|
|
|
|
-RUN apt-get install -y software-properties-common
|
|
|
-RUN add-apt-repository -y ppa:webupd8team/java
|
|
|
-RUN apt-get update
|
|
|
+RUN apt-get update && \
|
|
|
+ apt-get install -y software-properties-common && \
|
|
|
+ add-apt-repository -y ppa:webupd8team/java && \
|
|
|
+ apt-get update
|
|
|
|
|
|
# Auto-accept the Oracle JDK license
|
|
|
RUN echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
|