Update mrstub with nginx

Support http/https for mrstub
http port 3905
https port 3906
Add timeout for mr AGENT_READ_URL

Issue-ID: NONRTRIC-208
Change-Id: I222906b705f273b2e582ad8ce80fa88b2e582824
Signed-off-by: Chengkai Yan <martin.c.yan@est.tech>
diff --git a/test/mrstub/Dockerfile b/test/mrstub/Dockerfile
index ea867ad..9a15bc3 100644
--- a/test/mrstub/Dockerfile
+++ b/test/mrstub/Dockerfile
@@ -15,27 +15,22 @@
 #  ============LICENSE_END=================================================
 #
 
-#Dockerfile to create an image with both python3.8 and nodejs 14
-FROM python:3.8
+FROM python:3.8-slim-buster
 
-WORKDIR /usr/src/app
+COPY app/ /usr/src/app/
 
-#Install python modules
-COPY requirements.txt requirements.txt
+WORKDIR /usr/src/app/
+
+RUN chmod +x start.sh
+
+#install nginx
+RUN apt-get update
+RUN apt-get install -y nginx=1.14.*
+
+#install curl
+RUN apt-get install -y curl
+
+#start mrstub
 RUN pip install -r requirements.txt
 
-#Install nodejs and packages
-RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
-RUN apt-get install -y nodejs
-COPY package.json package.json
-RUN npm install express
-RUN npm install express-http-proxy
-
-#Copy apps and start script
-COPY mr.py mr.py
-COPY frontend.js frontend.js
-COPY start.sh start.sh
-
-RUN chmod +x ./start.sh
-
-CMD ["./start.sh"]
\ No newline at end of file
+CMD [ "./start.sh" ]
\ No newline at end of file