Fix Dockerfile issue 72/79672/2
authorXiaohua Zhang <xiaohua.zhang@windriver.com>
Tue, 5 Mar 2019 03:04:22 +0000 (03:04 +0000)
committerXiaohua Zhang <xiaohua.zhang@windriver.com>
Tue, 5 Mar 2019 03:31:14 +0000 (03:31 +0000)
Install wget to retrieve zip files
Purge and autoremove unused utils

Change-Id: I83a619e51f37a11d5295f50c68962021a2bbf6b8
Issue-ID: MULTICLOUD-508
Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
windriver/docker/Dockerfile

index 94ae485..8c73bc6 100644 (file)
@@ -20,14 +20,15 @@ RUN groupadd -r onap && useradd -r -g onap onap
 # COPY ./ /opt/windriver/
 
 RUN apt-get update && \
-    apt-get install -y memcached unzip gcc && \
+    apt-get install -y memcached wget unzip gcc && \
     cd /opt/ && \
     wget -O multicloud-openstack-windriver.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.multicloud.openstack&a=multicloud-openstack-windriver&e=zip&v=1.3.0-SNAPSHOT" && \
     unzip -q -o -B multicloud-openstack-windriver.zip && \
     chmod +x /opt/windriver/*.sh && \
     rm -f multicloud-openstack-windriver.zip && \
     pip install -r /opt/windriver/requirements.txt && \
-    apt-get remove -y unzip gcc && \
+    apt-get --purge remove -y wget unzip gcc && \
+    apt-get -y autoremove && \
     chown onap:onap /opt/windriver -R
 
 USER onap