debian.Dockerfile 619 B

123456789101112131415161718192021222324252627
  1. FROM python:3.12-slim-bookworm
  2. RUN apt-get update
  3. RUN apt-get -y install git openssl pkg-config libffi-dev python3-pip python3-dev build-essential libtool
  4. RUN useradd -u 1600 -m service-0net
  5. USER service-0net:service-0net
  6. WORKDIR /home/service-0net
  7. COPY requirements.txt .
  8. RUN python3 -m pip install -r requirements.txt
  9. # the part below is updated with source updates
  10. COPY . .
  11. ENTRYPOINT python3 zeronet.py --ui_ip "*" --fileserver_port 26552 \
  12. --tor $TOR_ENABLED --tor_controller tor:$TOR_CONTROL_PORT \
  13. --tor_proxy tor:$TOR_SOCKS_PORT --tor_password $TOR_CONTROL_PASSWD
  14. CMD main
  15. EXPOSE 43110 26552