Dockerfile 612 B

12345678910111213141516171819202122
  1. FROM docker.shemic.com/dev/python:latest
  2. MAINTAINER Rabin "https://github.com/shemic"
  3. ENV DEMETER_HOME=/usr/local/demeter
  4. ENV PATH=$PATH:$DEMETER_HOME
  5. RUN apk add --no-cache --update py-gevent py-psycopg2 git && \
  6. pip install tornado && \
  7. pip install pytest-runner && \
  8. pip install paho-mqtt && \
  9. pip install influxdb && \
  10. pip install short_url && \
  11. #pip install hashlib && \
  12. git clone http://git.shemic.com:3000/atom/demeter.git $DEMETER_HOME && \
  13. chmod -R 777 $DEMETER_HOME/* && \
  14. rm -rf $DEMETER_HOME/runtime/postgresql/* && \
  15. apk del git
  16. EXPOSE 8087 8088
  17. COPY demeter.sh /entrypoint/demeter.sh