Dockerfile.integrated_tor 473 B

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