From 18d3de00bea9e90587354cc551429a84d97a8ed2 Mon Sep 17 00:00:00 2001 From: Changjun Wang <310397125@qq.com> Date: Wed, 6 Mar 2019 07:39:00 +0000 Subject: Modify M-Cloud lenovo thinkcloud Dockerfile Modify Python2.7 to python2.7-slim Issue-ID: MULTICLOUD-516 Change-Id: Ic3d5cfb4e467652aa6e0a6ad340351998460b0b4 Signed-off-by: Changjun Wang <310397125@qq.com> --- lenovo/docker/Dockerfile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'lenovo') diff --git a/lenovo/docker/Dockerfile b/lenovo/docker/Dockerfile index 5660e8e0..2a619128 100644 --- a/lenovo/docker/Dockerfile +++ b/lenovo/docker/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM python:2.7 +FROM python:2.7-slim ARG HTTP_PROXY=${HTTP_PROXY} ARG HTTPS_PROXY=${HTTPS_PROXY} @@ -33,15 +33,16 @@ EXPOSE 9010 RUN groupadd -r onap && useradd -r -g onap onap -RUN apt-get update && apt-get install -y memcached unzip gcc && \ +RUN apt-get update && apt-get install -y memcached wget unzip gcc && \ cd /opt/ && \ - wget -O multicloud-openstack-thinkcloud.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.multicloud.openstack&a=multicloud-openstack-thinkcloud&e=zip&v=1.3.0-SNAPSHOT" && \ + wget -O multicloud-openstack-thinkcloud.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.multicloud.openstack&a=multicloud-openstack-lenovo&e=zip&v=1.3.0-SNAPSHOT" && \ unzip -q -o -B multicloud-openstack-thinkcloud.zip && \ - chmod +x /opt/thinkcloud/*.sh &&\ + chmod +x /opt/thinkcloud/*.sh &&\ rm -f multicloud-openstack-thinkcloud.zip &&\ - pip install -r /opt/thinkcloud/requirements.txt &&\ - apt-get remove -y unzip gcc && \ - chown onap:onap /opt/thinkcloud -R + pip install -r /opt/thinkcloud/requirements.txt &&\ + apt-get --purge remove -y wget unzip gcc && \ + apt-get -y autoremove && \ + chown onap:onap /opt/thinkcloud -R USER onap -- cgit 1.2.3-korg