tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Dockerfile (1002B)


      1 FROM debian:11
      2 
      3 # Required software
      4 ENV DEBIAN_FRONTEND noninteractive
      5 RUN apt-get update -q && \
      6    apt-get install -yyq --no-install-recommends \
      7    bzip2 \
      8    ca-certificates \
      9    curl \
     10    gcc \
     11    jq \
     12    libdpkg-perl \
     13    libgetopt-simple-perl \
     14    liblzma-dev \
     15    locales \
     16    python3 \
     17    libpython3-dev \
     18    python3-dev \
     19    python3-pip \
     20    xz-utils
     21 RUN useradd -d /home/worker -s /bin/bash -m worker
     22 COPY requirements.txt /
     23 
     24 RUN locale-gen en_CA.UTF-8
     25 ENV LANG en_CA.UTF-8
     26 ENV LANGUAGE en_CA.UTF-8
     27 ENV LANG_ALL en_CA.UTF-8
     28 ENV LC_ALL en_CA.UTF-8
     29 
     30 RUN ["pip", "install", "-r", "/requirements.txt"]
     31 
     32 # scripts
     33 RUN mkdir /home/worker/bin
     34 COPY scripts/* /home/worker/bin/
     35 
     36 COPY runme.sh /runme.sh
     37 RUN chmod 755 /home/worker/bin/* /*.sh
     38 RUN mkdir /home/worker/keys
     39 COPY *.pubkey /home/worker/keys/
     40 
     41 ENV           HOME          /home/worker
     42 ENV           SHELL         /bin/bash
     43 ENV           USER          worker
     44 ENV           LOGNAME       worker
     45 
     46 USER worker
     47 
     48 CMD ["/runme.sh"]