Dockerfile.arm64v8 777 B

1234567891011121314151617181920212223242526272829303132333435
  1. FROM alpine:3.12
  2. #Base settings
  3. ENV HOME /root
  4. COPY requirements.txt /root/requirements.txt
  5. #Install ZeroNet
  6. RUN apk --update --no-cache --no-progress add python3 python3-dev gcc libffi-dev musl-dev make tor openssl \
  7. && pip3 install -r /root/requirements.txt \
  8. && apk del python3-dev gcc libffi-dev musl-dev make \
  9. && echo "ControlPort 9051" >> /etc/tor/torrc \
  10. && echo "CookieAuthentication 1" >> /etc/tor/torrc
  11. RUN python3 -V \
  12. && python3 -m pip list \
  13. && tor --version \
  14. && openssl version
  15. #Add Zeronet source
  16. COPY . /root
  17. VOLUME /root/data
  18. #Control if Tor proxy is started
  19. ENV ENABLE_TOR false
  20. WORKDIR /root
  21. #Set upstart command
  22. CMD (! ${ENABLE_TOR} || tor&) && python3 zeronet.py --ui_ip 0.0.0.0 --fileserver_port 26552
  23. #Expose ports
  24. EXPOSE 43110 26552