uses entrypoint and cmd in docker file

This commit is contained in:
Zachary Boyd 2017-12-07 15:50:37 -08:00
parent b7af228e94
commit cecdd2d9fd
2 changed files with 4 additions and 2 deletions

View file

@ -36,4 +36,6 @@ ADD . /app
# Grab the current local timezone from an external api and save it into /etc/timezone, otherwise Tor will complain and won't start
CMD npm start
ENTRYPOINT [ "tor-router" ]
CMD [ "-s", "-d", "-j", "1" ]

View file

@ -10,7 +10,7 @@
"tor-router": "bin/tor-router"
},
"scripts": {
"start": "bin/tor-router -l debug -s -d -j 1",
"start": "bin/tor-router -s -d -j 1",
"test": "mocha test/test.js"
},
"devDependencies": {