aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/dcaegen2-services-slice-analysis-ms/slice-analysis-ms/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dcaegen2-services-slice-analysis-ms/slice-analysis-ms/Dockerfile')
-rw-r--r--scripts/dcaegen2-services-slice-analysis-ms/slice-analysis-ms/Dockerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/dcaegen2-services-slice-analysis-ms/slice-analysis-ms/Dockerfile b/scripts/dcaegen2-services-slice-analysis-ms/slice-analysis-ms/Dockerfile
new file mode 100644
index 00000000..52d54a57
--- /dev/null
+++ b/scripts/dcaegen2-services-slice-analysis-ms/slice-analysis-ms/Dockerfile
@@ -0,0 +1,15 @@
+FROM python:alpine3.7
+
+ADD configdb-sim.py /
+
+ADD ./sim-data /
+
+RUN pip install Flask --trusted-host pypi.org --trusted-host files.pythonhosted.org
+
+RUN pip install requests --trusted-host pypi.org --trusted-host files.pythonhosted.org
+
+EXPOSE 5000
+
+CMD ["flask", "run", "--host", "0.0.0.0"]
+
+CMD [ "python", "./configdb-sim.py" ]