diff options
author | Changjun Wang <310397125@qq.com> | 2019-03-06 07:39:00 +0000 |
---|---|---|
committer | Changjun Wang <310397125@qq.com> | 2019-03-06 08:47:58 +0000 |
commit | 18d3de00bea9e90587354cc551429a84d97a8ed2 (patch) | |
tree | db348f76b7d1d75332308db814375c8dd6ff7841 | |
parent | cc4e6853dca01ff1cdbbd6a163d1653e261d9a36 (diff) |
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>
-rw-r--r-- | lenovo/docker/Dockerfile | 15 |
1 files changed, 8 insertions, 7 deletions
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 |