summaryrefslogtreecommitdiffstats
path: root/vio/docker/Dockerfile
diff options
context:
space:
mode:
authorEthan Lynn <ethanlynnl@vmware.com>2019-04-09 14:02:47 +0800
committerEthan Lynn <ethanlynnl@vmware.com>2019-04-09 14:11:17 +0800
commitedbd90e0bb26038b397c3295c3844e6450254a70 (patch)
treeee70fbec7b9929dee7723c2a644cb31314e7c314 /vio/docker/Dockerfile
parent37b43aa2b44de7c5b99eaa857d2d4d8b25106c06 (diff)
Use alpine for MultiCloud VIO plugin
This patch change the base image to python:2-alpine Change-Id: Ibc267587584f0389fdf2a0b5ff2c15e5928758d4 Issue-ID: MULTICLOUD-537 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
Diffstat (limited to 'vio/docker/Dockerfile')
-rw-r--r--vio/docker/Dockerfile11
1 files changed, 5 insertions, 6 deletions
diff --git a/vio/docker/Dockerfile b/vio/docker/Dockerfile
index b035fc6..1fd4eca 100644
--- a/vio/docker/Dockerfile
+++ b/vio/docker/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:2-slim
+FROM python:2-alpine
ENV MSB_ADDR "127.0.0.1"
ENV MSB_PORT "80"
@@ -12,10 +12,10 @@ ENV MR_PORT "3904"
EXPOSE 9004
-RUN groupadd -r onap && useradd -r -g onap onap
+RUN addgroup -S onap && adduser -S -G onap onap
-RUN apt-get update && \
- apt-get install -y unzip wget curl gcc libssl-dev && \
+RUN apk update && \
+ apk add uwsgi unzip wget curl gcc make libc-dev libffi-dev openssl-dev && \
cd /opt/ && \
wget -q -O multicloud-vio.zip 'https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.multicloud.openstack.vmware&a=multicloud-openstack-vmware&v=1.3.0-SNAPSHOT&e=zip' && \
unzip multicloud-vio.zip && \
@@ -24,8 +24,7 @@ RUN apt-get update && \
mkdir -p /var/log/onap/multicloud/vio && \
chmod a+rw /var/log/onap/multicloud/vio && \
chown onap:onap -R /opt/vio/ && \
- apt-get --purge remove -y unzip gcc && \
- apt-get -y autoremove
+ apk del -y unzip gcc make libc-dev libffi-dev openssl-dev
USER onap