Sfoglia il codice sorgente

添加 'Dockerfile'

robert 5 anni fa
parent
commit
4f11b2cc52
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  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']