znctor.Dockerfile 668 B

1234567891011121314151617181920212223242526272829303132
  1. FROM python:3.12-alpine
  2. RUN apk --update --no-cache --no-progress add git gcc libffi-dev musl-dev make openssl g++ autoconf automake libtool
  3. RUN apk add tor
  4. RUN echo "ControlPort 9051" >> /etc/tor/torrc
  5. RUN echo "CookieAuthentication 1" >> /etc/tor/torrc
  6. RUN adduser -u 1600 -D service-0net
  7. USER service-0net:service-0net
  8. WORKDIR /home/service-0net
  9. COPY requirements.txt .
  10. RUN python3 -m pip install -r requirements.txt
  11. RUN echo "tor &" > start.sh
  12. RUN echo "python3 zeronet.py --ui_ip '*' --fileserver_port 26552" >> start.sh
  13. RUN chmod +x start.sh
  14. # the part below is updated with source updates
  15. COPY . .
  16. ENTRYPOINT ./start.sh
  17. CMD main
  18. EXPOSE 43110 26552