Dockerfile 921 B

1234567891011121314151617
  1. FROM centos:centos7.6.1810
  2. LABEL author="robert_du[robert_du@easou.cn]"
  3. ADD flask_zbx_tools.zip /root
  4. ADD entrypoint.sh /usr/bin/entrypoint.sh
  5. RUN yum install -y gcc python-devel unzip zip wget \
  6. && wget -P /root https://files.pythonhosted.org/packages/f7/b6/5b98441b6749ea1db1e41e5e6e7a93cbdd7ffd45e11fe1b22d45884bc777/setuptools-42.0.2.zip \
  7. && wget -P /root https://files.pythonhosted.org/packages/ce/ea/9b445176a65ae4ba22dce1d93e4b5fe182f953df71a145f557cffaffc1bf/pip-19.3.1.tar.gz \
  8. && cd /root && unzip setuptools-42.0.2.zip && tar xf pip-19.3.1.tar.gz && unzip flask_zbx_tools.zip \
  9. && cd /root/setuptools-42.0.2 && python setup.py install \
  10. && cd /root/pip-19.3.1 && python setup.py install \
  11. && cd /root && pip install flask && pip install flask-restful && pip install requests \
  12. && chmod +x /usr/bin/entrypoint.sh
  13. ENTRYPOINT ["entrypoint.sh"]
  14. CMD ['sh /root/flask_zbx_tools/start.sh']