Optimize Docker image footprint
[multicloud/framework.git] / multivimbroker / docker / Dockerfile
1 FROM python:2-slim
2
3 ENV MSB_ADDR "127.0.0.1"
4 ENV MSB_PORT "80"
5 ENV AAI_ADDR "aai.api.simpledemo.openecomp.org"
6 ENV AAI_PORT "8443"
7 ENV AAI_SCHEMA_VERSION "v11"
8 ENV AAI_USERNAME "AAI"
9 ENV AAI_PASSWORD "AAI"
10
11 EXPOSE 9001
12
13 RUN groupadd -r onap && useradd -r -g onap onap
14
15 # COPY ./ /opt/multivimbroker/
16 RUN apt-get update && \
17     apt-get install -y wget unzip gcc && \
18     cd /opt/ && \
19     wget -O multicloud-framework.zip "https://nexus.onap.org/service/local/artifact/maven/redirect?r=snapshots&g=org.onap.multicloud.framework.broker&a=multicloud-framework-broker&e=zip&v=1.2.3-SNAPSHOT" && \
20     unzip -q -o -B multicloud-framework.zip && \
21     rm -f multicloud-framework.zip && \
22     pip install -r /opt/multivimbroker/requirements.txt && \
23     pip install -r /opt/multivimbroker/uwsgi-requirements.txt && \
24     apt-get --purge remove -y wget unzip gcc && \
25     apt-get -y autoremove && \
26     chown onap:onap /opt/multivimbroker -R
27
28 USER onap
29
30 WORKDIR /opt/multivimbroker
31 CMD /bin/sh -c /opt/multivimbroker/run.sh

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use