ci: update java 11 installation 53/112653/1
authorcyuamber <xuranyjy@chinamobile.com>
Tue, 15 Sep 2020 03:39:17 +0000 (11:39 +0800)
committercyuamber <xuranyjy@chinamobile.com>
Tue, 15 Sep 2020 03:39:31 +0000 (11:39 +0800)
Change-Id: I3a79d26aad0ab6d6c925de2ceaefd6046bb082d2
Issue-ID: USECASEUI-484
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
distribution/src/main/assembly/Dockerfile

index 1771c00..a173bae 100644 (file)
@@ -2,10 +2,10 @@ FROM ubuntu:16.04
 
 EXPOSE 8443
 
-RUN apt-get update && \
-    apt-get install -y python-software-properties && \
+RUN apt-get install -y python-software-properties && \
     apt-get install -y software-properties-common && \
     add-apt-repository -y ppa:openjdk-r/ppa && \
+    apt-get update && \
     apt-get install -y openjdk-11-jdk
 
 #configure the JDK