Explorar o código

添加 'Dockerfile'

robert %!s(int64=5) %!d(string=hai) anos
pai
achega
4f11b2cc52
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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']