fixes issue with timezones
This commit is contained in:
parent
d3aad86da2
commit
9f8dd3976c
|
@ -22,4 +22,6 @@ WORKDIR /app
|
||||||
|
|
||||||
RUN npm install
|
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
|
CMD npm start
|
|
@ -7,6 +7,8 @@ var DNSServer = TorRouter.DNSServer;
|
||||||
var TorPool = TorRouter.TorPool;
|
var TorPool = TorRouter.TorPool;
|
||||||
var winston = require('winston')
|
var winston = require('winston')
|
||||||
|
|
||||||
|
process.title = 'tor-router';
|
||||||
|
|
||||||
program
|
program
|
||||||
.version('0.0.1')
|
.version('0.0.1')
|
||||||
.option('-j, --instances <1>', 'Number of tor instances', Number)
|
.option('-j, --instances <1>', 'Number of tor instances', Number)
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"tor-router": "bin/tor-router"
|
"tor-router": "bin/tor-router"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "bin/tor-router",
|
"start": "bin/tor-router -j 3",
|
||||||
"test": "mocha test/test.js"
|
"test": "mocha test/test.js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
Loading…
Reference in a new issue