12345678910111213141516171819202122232425262728 |
- FROM docker.dever.cc/dev/python/v3:latest
- MAINTAINER Rabin "https://github.com/shemic"
- ENV IOT_NAME=zeus
- ENV IOT_HOME=/usr/local/$IOT_NAME
- ENV DEMETER_CONF=env
- ENV PATH=$PATH:$IOT_HOME
- RUN apk add --no-cache --update py-psycopg2 git gcc g++ && \
- pip3 install --upgrade pip && \
- pip3 install tornado && \
- pip3 install pytest-runner && \
- pip3 install paho-mqtt && \
- pip3 install modbus-tk && \
- pip3 install influxdb && \
- pip3 install short_url && \
- pip3 install oss2 && \
- #pip3 install qrcode && \
- pip3 install -U git+http://git.dever.cc:3000/python/demeter.git && \
- git clone http://git.dever.cc:3000/xinnongbaohe/$IOT_NAME.git $IOT_HOME && \
- rm -R $IOT_HOME/runtime/postgresql && \
- chmod -R +x $IOT_HOME/*.py && \
- apk del gcc g++
- EXPOSE 8090 8091
- COPY iot.sh /entrypoint/iot.sh
|