Private Decentralized Communication Network
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
602 B

  1. FROM python:3.7
  2. EXPOSE 8080
  3. USER root
  4. RUN mkdir /app
  5. WORKDIR /app
  6. ENV ONIONR_DOCKER=true
  7. #Install needed packages
  8. RUN apt-get update && apt-get install -y tor locales
  9. RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
  10. locale-gen
  11. ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
  12. ADD ./requirements.txt /app/requirements.txt
  13. RUN pip3 install --require-hashes -r requirements.txt
  14. #Add Onionr source
  15. COPY . /app/
  16. VOLUME /app/data/
  17. #Default to running as nonprivileged user
  18. RUN chmod g=u -R /app
  19. USER 1000
  20. ENV HOME=/app
  21. CMD ["bash", "./run-onionr-node.sh"]