summaryrefslogtreecommitdiffstats
path: root/windriver/docker/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'windriver/docker/Dockerfile')
-rw-r--r--windriver/docker/Dockerfile11
1 files changed, 5 insertions, 6 deletions
diff --git a/windriver/docker/Dockerfile b/windriver/docker/Dockerfile
index f4e151fc..cd58bd76 100644
--- a/windriver/docker/Dockerfile
+++ b/windriver/docker/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:2-slim
+FROM python:2-alpine
ARG HTTP_PROXY=${HTTP_PROXY}
ARG HTTPS_PROXY=${HTTPS_PROXY}
@@ -16,19 +16,18 @@ ENV AAI_PASSWORD "AAI"
EXPOSE 9005
-RUN groupadd -r onap && useradd -r -g onap onap
+RUN addgroup -S onap && adduser -S -G onap onap
# COPY ./ /opt/windriver/
-RUN apt-get update && \
- apt-get install -y memcached wget unzip gcc libssl-dev && \
+RUN apk update && \
+ apk add uwsgi memcached wget unzip gcc make libc-dev libffi-dev openssl-dev && \
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 --purge remove -y wget unzip gcc libssl-dev && \
- apt-get -y autoremove && \
+ apk del -y wget unzip gcc make libc-dev libffi-dev openssl-dev && \
mkdir -p /var/log/onap/multicloud/openstack/windriver && \
chown onap:onap /var/log/onap -R && \
chown onap:onap /opt/windriver -R