Dockerfile 566 B

12345678910111213141516171819202122232425262728
  1. FROM ubuntu:14.04
  2. MAINTAINER Felix Imobersteg <felix@whatwedo.ch>
  3. #Base settings
  4. ENV DEBIAN_FRONTEND noninteractive
  5. ENV HOME /root
  6. #Update package lists
  7. RUN apt-get update -y
  8. #Install ZeroNet deps
  9. RUN apt-get install msgpack-python python-gevent python-pip python-dev -y
  10. RUN pip install msgpack-python --upgrade
  11. #Add Zeronet source
  12. ADD . /root
  13. #Slimming down Docker containers
  14. RUN apt-get clean -y
  15. RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  16. #Set upstart command
  17. CMD cd /root && python zeronet.py --ui_ip 0.0.0.0
  18. #Expose ports
  19. EXPOSE 43110
  20. EXPOSE 15441