Dockerfile.integrated_tor 571 B

123456789101112131415161718192021
  1. FROM python:3.10.4-alpine
  2. RUN apk --update --no-progress add tor gcc libffi-dev musl-dev make openssl g++
  3. RUN echo "ControlPort 9051" >> /etc/tor/torrc
  4. RUN echo "CookieAuthentication 1" >> /etc/tor/torrc
  5. WORKDIR /app
  6. COPY --chown=root:root CHANGELOG.md .
  7. COPY --chown=root:root plugins/ .
  8. COPY --chown=root:root src/ .
  9. COPY --chown=root:root requirements.txt .
  10. COPY --chown=root:root zeronet.py .
  11. RUN python3 -m pip install -r requirements.txt
  12. CMD (tor&) \
  13. && source venv/bin/activate \
  14. && python3 zeronet.py --ui_ip "*" --fileserver_port 26552
  15. EXPOSE 43110 26552