Dockerfile 796 B

12345678910111213141516171819202122232425262728
  1. FROM docker.dever.cc/dev/python/v3:latest
  2. MAINTAINER Rabin "https://github.com/shemic"
  3. ENV IOT_NAME=zeus
  4. ENV IOT_HOME=/usr/local/$IOT_NAME
  5. ENV DEMETER_CONF=env
  6. ENV PATH=$PATH:$IOT_HOME
  7. RUN apk add --no-cache --update py-psycopg2 git gcc g++ && \
  8. pip3 install --upgrade pip && \
  9. pip3 install tornado && \
  10. pip3 install pytest-runner && \
  11. pip3 install paho-mqtt && \
  12. pip3 install modbus-tk && \
  13. pip3 install influxdb && \
  14. pip3 install short_url && \
  15. pip3 install oss2 && \
  16. #pip3 install qrcode && \
  17. pip3 install -U git+http://git.dever.cc:3000/python/demeter.git && \
  18. git clone http://git.dever.cc:3000/xinnongbaohe/$IOT_NAME.git $IOT_HOME && \
  19. rm -R $IOT_HOME/runtime/postgresql && \
  20. chmod -R +x $IOT_HOME/*.py && \
  21. apk del gcc g++
  22. EXPOSE 8090 8091
  23. COPY iot.sh /entrypoint/iot.sh