blob: 4a9c41476d4ed861d700068c23b32223c8304be5 [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
Taka Cho9bec8482019-02-18 14:31:27 -050010RUN apk add --no-cache curl \
11 bash \
12 py2-pip \
Sylvain Desbureaux1bc56902019-01-30 14:36:14 +010013 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
22COPY ansible-server ansible-server
23COPY configuration/ansible.cfg /etc/ansible/ansible.cfg
24
25WORKDIR /opt/ansible-server
26
Timoney, Dan (dt5972)15f406b2019-02-06 17:14:45 -050027RUN mkdir /opt/onap ; ln -s /opt/ansible-server /opt/onap/ccsdk
28
Sylvain Desbureaux1bc56902019-01-30 14:36:14 +010029EXPOSE 8000
30
Taka Cho9bec8482019-02-18 14:31:27 -050031##ENTRYPOINT ["python2", "RestServer.py"]