Browse Source

添加 'Dockerfile'

robert 5 years ago
parent
commit
4f11b2cc52
1 changed files with 8 additions and 0 deletions
  1. 8 0
      Dockerfile

+ 8 - 0
Dockerfile

@@ -0,0 +1,8 @@
+FROM python:2.7.10
+LABEL author="robert_du[robert_du@easou.cn]"
+
+ADD flask_zbx_tools.zip /root
+RUN pip install flask && pip install flask-restful && pip install requests \
+   && yum install unzip zip -y && unzip -d /root /root/flask_zbx_tools.zip
+
+CMD ['python', '/root/flask_zbx_tools/service.py']