Dockerfile 496 B

123456789101112131415161718
  1. FROM python:3.10.4-alpine
  2. RUN apk --update --no-cache --no-progress add gcc libffi-dev musl-dev make openssl g++
  3. WORKDIR /app
  4. COPY . .
  5. RUN python3 -m venv venv \
  6. && source venv/bin/activate \
  7. && python3 -m pip install -r requirements.txt
  8. CMD source venv/bin/activate \
  9. && python3 zeronet.py --ui_ip "*" --fileserver_port 26552 \
  10. --tor $TOR_ENABLED --tor_controller tor:$TOR_CONTROL_PORT \
  11. --tor_proxy tor:$TOR_SOCKS_PORT --tor_password $TOR_CONTROL_PASSWD main
  12. EXPOSE 43110 26552