blob: 0555e7d95848f653b39fb1b699ac53ea2e5757c9 [file] [log] [blame]
Sylvain Desbureaux1bc56902019-01-30 14:36:14 +01001FROM alpine:3.8
2
3LABEL maintainer="SDN-C Team (sdnc@lists.openecomp.org)"
4ARG PIP_TAG=18.0
5
6WORKDIR /opt/
7
8COPY ansible-server/requirements.txt ansible-server/requirements.txt
9
10RUN 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
20COPY ansible-server ansible-server
21COPY configuration/ansible.cfg /etc/ansible/ansible.cfg
22
23WORKDIR /opt/ansible-server
24
25EXPOSE 8000
26
27ENTRYPOINT ["python2", "RestServer.py"]