Sylvain Desbureaux | 1bc5690 | 2019-01-30 14:36:14 +0100 | [diff] [blame] | 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 | |
Taka Cho | 9bec848 | 2019-02-18 14:31:27 -0500 | [diff] [blame^] | 10 | RUN apk add --no-cache curl \ |
| 11 | bash \ |
| 12 | py2-pip \ |
Sylvain Desbureaux | 1bc5690 | 2019-01-30 14:36:14 +0100 | [diff] [blame] | 13 | python2 &&\ |
| 14 | apk add --no-cache --virtual .build-deps build-base \ |
| 15 | libffi-dev \ |
| 16 | openssl-dev \ |
| 17 | python2-dev &&\ |
| 18 | pip install --no-cache-dir --upgrade pip==$PIP_TAG && \ |
| 19 | pip install --no-cache-dir -r ansible-server/requirements.txt &&\ |
| 20 | apk del .build-deps |
| 21 | |
| 22 | COPY ansible-server ansible-server |
| 23 | COPY configuration/ansible.cfg /etc/ansible/ansible.cfg |
| 24 | |
| 25 | WORKDIR /opt/ansible-server |
| 26 | |
Timoney, Dan (dt5972) | 15f406b | 2019-02-06 17:14:45 -0500 | [diff] [blame] | 27 | RUN mkdir /opt/onap ; ln -s /opt/ansible-server /opt/onap/ccsdk |
| 28 | |
Sylvain Desbureaux | 1bc5690 | 2019-01-30 14:36:14 +0100 | [diff] [blame] | 29 | EXPOSE 8000 |
| 30 | |
Taka Cho | 9bec848 | 2019-02-18 14:31:27 -0500 | [diff] [blame^] | 31 | ##ENTRYPOINT ["python2", "RestServer.py"] |