Merge "Add missing MR to mtce release contents"
[ccsdk/distribution.git] / ansible-server / src / main / Dockerfile
1 FROM alpine:3.8
2
3 LABEL maintainer="SDN-C Team (sdnc@lists.openecomp.org)"
4 ARG PIP_TAG=18.0
5
6 WORKDIR /opt/
7
8 COPY ansible-server/requirements.txt ansible-server/requirements.txt
9
10 RUN apk add --no-cache py2-pip \
11                        python2 &&\
12     apk add --no-cache --virtual .build-deps build-base \
13                                              libffi-dev \
14                                              openssl-dev \
15                                              python2-dev &&\
16     pip install --no-cache-dir --upgrade pip==$PIP_TAG && \
17     pip install --no-cache-dir -r ansible-server/requirements.txt &&\
18     apk del .build-deps
19
20 COPY ansible-server ansible-server
21 COPY configuration/ansible.cfg /etc/ansible/ansible.cfg
22
23 WORKDIR /opt/ansible-server
24
25 RUN mkdir /opt/onap ; ln -s /opt/ansible-server /opt/onap/ccsdk
26
27 EXPOSE 8000
28
29 ENTRYPOINT ["python2", "RestServer.py"]

© 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