tor-router/Dockerfile
2017-01-31 19:54:31 -05:00

27 lines
531 B
Docker

FROM ubuntu:16.10
EXPOSE 9050
EXPOSE 53
ENV DNS_PORT 53
ENV SOCKS_PORT 9050
ENV INSTANCES 3
ADD https://deb.nodesource.com/setup_7.x /nodejs_install
RUN bash /nodejs_install
RUN apt install -y nodejs tor git
ADD . /app
WORKDIR /app
RUN npm install
RUN curl -sL http://ip-api.com/json | node -e "process.stdin.resume(); process.stdin.on('data', (data) => { process.stdout.write(JSON.parse(data.toString('utf8')).timezone); process.exit(0); });" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata
CMD npm start