FROM python:3.7.4-stretch

MAINTAINER afa@afa.com

WORKDIR /workspaces

COPY  industrial_internet_monitor  /workspaces/industrial_internet_monitor

RUN pip3 install -r /workspaces/industrial_internet_monitor/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/     && rm -rf /root/.cache/pip /root/.python_history /root/.wget-hsts

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime &&  echo 'Asia/Shanghai' >/etc/timezone

WORKDIR /workspaces/industrial_internet_monitor

ENTRYPOINT ["/bin/sh","-c","./docker-entrypoint.sh"]

