|
@@ -3,6 +3,7 @@ FROM docker.shemic.com/dev/python:latest
|
|
|
MAINTAINER Rabin "https://github.com/shemic"
|
|
|
|
|
|
ENV DEMETER_HOME=/usr/local/demeter
|
|
|
+ENV DEMETER_LIB=/usr/lib/python2.7/site-packages/demeter
|
|
|
ENV DEMETER_CONF=env
|
|
|
ENV PATH=$PATH:$DEMETER_HOME
|
|
|
|
|
@@ -12,11 +13,14 @@ RUN apk add --no-cache --update py-gevent py-psycopg2 git && \
|
|
|
pip install paho-mqtt && \
|
|
|
pip install influxdb && \
|
|
|
pip install short_url && \
|
|
|
- #pip install hashlib && \
|
|
|
- git clone http://git.shemic.com:3000/atom/nongxiaohe.git $DEMETER_HOME && \
|
|
|
- chmod -R 777 $DEMETER_HOME/* && \
|
|
|
- rm -rf $DEMETER_HOME/runtime/postgresql/*
|
|
|
+ pip install oss2 --upgrade && \
|
|
|
+ #pip install qrcode && \
|
|
|
+ git clone http://git.dever.cc:3000/python/demeter.git $DEMETER_LIB && \
|
|
|
+ git clone http://git.dever.cc:3000/python/nongxiaohe.git $DEMETER_HOME && \
|
|
|
+ #mkdir -p /etc/supervisor/conf.d/ && \
|
|
|
+ chmod -R +x $DEMETER_HOME/*.py
|
|
|
|
|
|
EXPOSE 8087 8088
|
|
|
|
|
|
-COPY demeter.sh /entrypoint/demeter.sh
|
|
|
+COPY demeter.sh /entrypoint/demeter.sh
|
|
|
+#COPY supervisor/ /etc/supervisor/
|