From cecdd2d9fdae44f27e15493fdce95b99a8d09a8f Mon Sep 17 00:00:00 2001 From: Zachary Boyd Date: Thu, 7 Dec 2017 15:50:37 -0800 Subject: [PATCH] uses entrypoint and cmd in docker file --- Dockerfile | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d3f7008..f206192 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file +ENTRYPOINT [ "tor-router" ] + +CMD [ "-s", "-d", "-j", "1" ] \ No newline at end of file diff --git a/package.json b/package.json index 0ee8e4b..65848e6 100644 --- a/package.json +++ b/package.json @@ -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": {