anchor.diff:  # Persist data
   VOLUME /etc/tor /var/lib/tor
   
  -# ORPort, DirPort, ObfsproxyPort
  -EXPOSE 9001 9030 54444
  +# ORPort, DirPort, SocksPort, ObfsproxyPort, MeekPort
  +EXPOSE 9001 9030 9050 54444 7002
   
   ENTRYPOINT ["docker-entrypoint"]
   
  
positive.code: ARG DEBIAN_FRONTEND=noninteractive
  
  # If no Nickname is set, a random string will be added to 'Tor4'
  ENV TOR_NICKNAME=Tor4 \
      TERM=xterm
  
  # Install prerequisites
  
negative.code:     deb.torproject.org-keyring \
      obfs4proxy && \
    mv -v /etc/tor/torrc /etc/tor/torrc.default && \
    obfs4proxy -version && \
    # Download GeoIP files
    cd /usr/share && \
    apt-get -d source tor && \
    tar --strip-components=3 --wildcards -zxvf tor_*.orig.tar.gz tor-*/src/config/geoip && \
    tar --strip-components=3 --wildcards -zxvf tor_*.orig.tar.gz tor-*/src/config/geoip6 && \
    rm -v tor_* && \
    apt-get clean && rm -rf /var/lib/apt/lists/*
  
  
  
  # Debian creates an unprivileged tor user
  # debian-tor
  
  
  # Copy Tor configuration file
  COPY ./torrc /etc/tor/torrc
  
  # Copy docker-entrypoint
  COPY ./scripts/ /usr/local/bin/
  