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 | |
| 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 | EXPOSE 8000 |
| 26 | |
| 27 | ENTRYPOINT ["python2", "RestServer.py"] |