35 lines
No EOL
743 B
Docker
35 lines
No EOL
743 B
Docker
FROM ubuntu:16.10
|
|
|
|
EXPOSE 9050
|
|
|
|
EXPOSE 53
|
|
|
|
EXPOSE 9077
|
|
|
|
ENV DNS_PORT 53
|
|
|
|
ENV SOCKS_PORT 9050
|
|
|
|
ENV CONTROL_PORT 9077
|
|
|
|
ENV PATH $PATH:/app/bin
|
|
|
|
ADD http://public.zacharyboyd.nyc/columbia-ubuntu-sources.list /etc/apt/sources.list
|
|
|
|
ADD tor-sources.list /etc/apt/sources.list.d/tor.list
|
|
|
|
ADD https://deb.nodesource.com/setup_6.x /tmp/nodejs_install
|
|
|
|
RUN bash /tmp/nodejs_install
|
|
|
|
RUN apt install -y --allow-unauthenticated deb.torproject.org-keyring nodejs tor git
|
|
|
|
ADD . /app
|
|
|
|
WORKDIR /app
|
|
|
|
RUN npm install
|
|
|
|
# Grab the current local timezone from an external api and save it into /etc/timezone, otherwise Tor will complain and won't start
|
|
|
|
CMD bash /app/bin/get-timezone.sh > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata && npm start |