aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/templates/python_unit_test/Dockerfile
diff options
context:
space:
mode:
authorRuan HE <ruan.he@orange.com>2017-12-01 15:44:28 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-01 15:44:28 +0000
commit60f88d9bbadc96ff434071cab070933f41220e21 (patch)
treecbbb1f87bc3064f19645b1396be7a78a207c73c3 /moonv4/templates/python_unit_test/Dockerfile
parent7a8c6828a170d001e905a108b7f873497cdefa88 (diff)
parentc47f1f819cd81efa3c7f9bc64cda30d337730210 (diff)
Merge "create moon python unit test docker image"
Diffstat (limited to 'moonv4/templates/python_unit_test/Dockerfile')
-rw-r--r--moonv4/templates/python_unit_test/Dockerfile8
1 files changed, 8 insertions, 0 deletions
diff --git a/moonv4/templates/python_unit_test/Dockerfile b/moonv4/templates/python_unit_test/Dockerfile
new file mode 100644
index 00000000..b8fb5151
--- /dev/null
+++ b/moonv4/templates/python_unit_test/Dockerfile
@@ -0,0 +1,8 @@
+FROM python:3
+
+RUN pip install pytest requests_mock requests --upgrade
+ADD requirements.txt /root
+RUN pip install -r /root/requirements.txt --upgrade
+
+ADD run_tests.sh /root
+CMD ["sh", "/root/run_tests.sh"] \ No newline at end of file