Dockerfile 605 B

1234567891011121314151617181920212223242526
  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 adduser -u 1600 -D service-0net
  4. USER service-0net:service-0net
  5. WORKDIR /home/service-0net
  6. COPY requirements.txt .
  7. RUN python3 -m pip install -r requirements.txt
  8. # the part below is updated with source updates
  9. COPY . .
  10. ENTRYPOINT python3 zeronet.py --ui_ip "*" --fileserver_port 26552 \
  11. --tor $TOR_ENABLED --tor_controller tor:$TOR_CONTROL_PORT \
  12. --tor_proxy tor:$TOR_SOCKS_PORT --tor_password $TOR_CONTROL_PASSWD
  13. CMD main
  14. EXPOSE 43110 26552