Dockerfile 845 B

123456789101112131415161718192021222324252627
  1. FROM docker.shemic.com/dev/python:latest
  2. MAINTAINER Rabin "https://github.com/shemic"
  3. RUN apk update && apk add --no-cache gcc g++ make libzmq python-dev python3 python3-dev && \
  4. wget http://www.shemic.com/file/zeromq/zeromq-4.2.1.tar.gz && \
  5. tar -zxvf zeromq-4.2.1.tar.gz && \
  6. cd zeromq-4.2.1 && \
  7. ./configure --prefix=/usr/local/zeromq && \
  8. make && make install && \
  9. cd .. && \
  10. rm -rf zeromq* && \
  11. pip2 install pyzmq --install-option="--zmq=/usr/local/zeromq" && \
  12. pip2 install ipython && \
  13. pip2 install jupyter && \
  14. pip3 install pyzmq --install-option="--zmq=/usr/local/zeromq" && \
  15. pip3 install -U ipykernel && \
  16. python3 -m ipykernel install --user && \
  17. mkdir /usr/local/jupyter && \
  18. apk del gcc g++ make python-dev python3-dev
  19. VOLUME ["/src"]
  20. COPY entrypoint.sh /entrypoint.sh
  21. ENTRYPOINT ["/entrypoint.sh"]
  22. CMD ["start"]