Dockerfile 618 B

1234567891011121314151617181920212223242526
  1. FROM alpine:3.8
  2. #Base settings
  3. ENV HOME /root
  4. #Install ZeroNet
  5. RUN apk --no-cache --no-progress add musl-dev gcc python python-dev py2-pip tor openssl \
  6. && pip install --no-cache-dir gevent msgpack \
  7. && apk del musl-dev gcc python-dev py2-pip \
  8. && echo "ControlPort 9051" >> /etc/tor/torrc \
  9. && echo "CookieAuthentication 1" >> /etc/tor/torrc
  10. #Add Zeronet source
  11. COPY . /root
  12. VOLUME /root/data
  13. #Control if Tor proxy is started
  14. ENV ENABLE_TOR false
  15. WORKDIR /root
  16. #Set upstart command
  17. CMD (! ${ENABLE_TOR} || tor&) && python zeronet.py --ui_ip 0.0.0.0 --fileserver_port 26552
  18. #Expose ports
  19. EXPOSE 43110 26552