Test case updates
[nonrtric.git] / test / mrstub / Dockerfile
index f1d16b7..ac075bf 100644 (file)
@@ -1,5 +1,5 @@
 #  ============LICENSE_START===============================================
-#  Copyright (C) 2020 Nordix Foundation. All rights reserved.
+#  Copyright (C) 2021 Nordix Foundation. All rights reserved.
 #  ========================================================================
 #  Licensed under the Apache License, Version 2.0 (the "License");
 #  you may not use this file except in compliance with the License.
 #  ============LICENSE_END=================================================
 #
 
-FROM python:3.7
+ARG NEXUS_PROXY_REPO
 
-WORKDIR /usr/src/app
+FROM ${NEXUS_PROXY_REPO}python:3.8-slim-buster
+
+# Change order to fix problem with WSL
+
+#install nginx
+RUN apt-get update
+RUN apt-get install -y nginx=1.14.*
 
-COPY requirements.txt requirements.txt
+COPY app/ /usr/src/app/
+COPY cert/ /usr/src/app/cert/
+
+WORKDIR /usr/src/app
 
 RUN pip install -r requirements.txt
 
-COPY mr.py mr.py
+RUN chmod +x start.sh
 
-CMD [ "python3", "-u", "./mr.py" ]
\ No newline at end of file
+CMD [ "./start.sh" ]