# Base ubuntu with added packages needed for open ecomp
-#FROM onap/ccsdk-ubuntu-image:${ccsdk.distribution.version}
-FROM onap/ccsdk-ubuntu-image:0.2.1-SNAPSHOT
+FROM onap/ccsdk-ubuntu-image:${ccsdk.distribution.version}
 
 LABEL maintainer="SDN-C Team (sdnc@lists.openecomp.org)"
 
 ##Python:
 RUN apt-get -y install python2.7
 RUN apt-get -y install python-pip
-RUN pip install PyMySQL
-RUN pip install cherrypy
-RUN pip install requests
 
 ##Ansible:
 RUN apt-get -y install software-properties-common
 
 WORKDIR /opt/onap/sdnc
 
-ENTRYPOINT exec python RestServer.py > RestServer.out
+ENTRYPOINT exec startAnsibleServer.sh
 #CMD ["/bin/bash"]
 EXPOSE 8000
 
 
--- /dev/null
+#/bin/bash
+
+if [ ! -d /tmp/.ansible-server-installed]
+then
+       pip install PyMySQL
+       pip install cherrypy
+       pip install requests
+       date > /tmp/.ansible-server-installed 2>&1
+fi
+
+cd /opt/onap/sdnc
+exec python RestServer.py > RestServer.out
\ No newline at end of file