From 41fc14132de75705262b1c9e38a697a7a18d8935 Mon Sep 17 00:00:00 2001 From: Liexiang Yue Date: Wed, 6 Mar 2019 16:15:18 +0800 Subject: Optimize docker image footprint size Issue-ID: MULTICLOUD-495 Change-Id: I351c2424050e139c5d53ebe78c44c8579d350a1c Signed-off-by: Liexiang Yue --- fcaps/docker/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'fcaps/docker') diff --git a/fcaps/docker/Dockerfile b/fcaps/docker/Dockerfile index 8a3c6b2f..6484905b 100644 --- a/fcaps/docker/Dockerfile +++ b/fcaps/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM python:2 +FROM python:2-slim ARG HTTP_PROXY=${HTTP_PROXY} ARG HTTPS_PROXY=${HTTPS_PROXY} @@ -20,7 +20,7 @@ RUN groupadd -r onap && useradd -r -g onap onap # COPY ./ /opt/fcaps/ RUN apt-get update && \ - apt-get install -y memcached && \ + apt-get install -y memcached wget unzip gcc && \ apt-get install -y unzip && \ cd /opt/ && \ wget -O multicloud-openstack-fcaps.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.multicloud.openstack&a=multicloud-openstack-fcaps&e=zip&v=1.3.0-SNAPSHOT" && \ @@ -28,6 +28,8 @@ RUN apt-get update && \ chmod +x /opt/fcaps/*.sh && \ rm -f multicloud-openstack-fcaps.zip && \ pip install -r /opt/fcaps/requirements.txt && \ + apt-get --purge remove -y wget unzip gcc && \ + apt-get -y autoremove && \ chown onap:onap /opt/fcaps -R USER onap -- cgit 1.2.3-korg