tor-router/Dockerfile

31 lines
638 B
Docker
Raw Normal View History

2017-01-31 15:56:42 +00:00
FROM ubuntu:16.10
EXPOSE 9050
EXPOSE 53
2017-01-31 23:11:36 +00:00
ENV DNS_PORT 53
ENV SOCKS_PORT 9050
2017-01-31 23:16:57 +00:00
ENV INSTANCES 3
2017-03-12 17:38:47 +00:00
ENV PATH $PATH:/app/bin
ADD tor-sources.list /etc/apt/sources.list.d/tor.list
2017-03-12 18:59:47 +00:00
ADD https://deb.nodesource.com/setup_6.x /tmp/nodejs_install
2017-01-31 15:56:42 +00:00
2017-03-12 17:01:35 +00:00
RUN bash /tmp/nodejs_install
2017-01-31 15:56:42 +00:00
RUN apt install -y --allow-unauthenticated deb.torproject.org-keyring nodejs tor git
2017-01-31 15:56:42 +00:00
ADD . /app
WORKDIR /app
RUN npm install
2017-02-01 00:55:09 +00:00
# Grab the current local timezone from an external api and save it into /etc/timezone, otherwise Tor will complain and won't start
2017-02-01 00:54:31 +00:00
2017-03-12 18:36:43 +00:00
CMD bash /app/bin/get-timezone.sh > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata && npm start