Dockerfile 755 B

1234567891011121314151617181920212223242526272829303132
  1. FROM ubuntu:16.04
  2. MAINTAINER Felix Imobersteg <felix@whatwedo.ch>
  3. #Base settings
  4. ENV DEBIAN_FRONTEND noninteractive
  5. ENV HOME /root
  6. #Install ZeroNet
  7. RUN \
  8. apt-get update -y; \
  9. apt-get -y install msgpack-python python-gevent python-pip python-dev tor; \
  10. pip install msgpack-python --upgrade; \
  11. apt-get clean -y; \
  12. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
  13. echo "ControlPort 9051" >> /etc/tor/torrc; \
  14. echo "CookieAuthentication 1" >> /etc/tor/torrc
  15. #Add Zeronet source
  16. ADD . /root
  17. VOLUME /root/data
  18. #Control if Tor proxy is started
  19. ENV ENABLE_TOR false
  20. #Set upstart command
  21. CMD cd /root && (! ${ENABLE_TOR} || /etc/init.d/tor start) && python zeronet.py --ui_ip 0.0.0.0
  22. #Expose ports
  23. EXPOSE 43110
  24. EXPOSE 15441