From bbde4549d68b25fbe1e3adb5e08e018afb567ebb Mon Sep 17 00:00:00 2001 From: CharlieC3 <2747302+CharlieC3@users.noreply.github.com> Date: Tue, 4 May 2021 09:28:43 -0400 Subject: [PATCH] fix: update dockerfiles and node scripts --- admin/package.json | 3 ++- hub/Dockerfile | 2 +- hub/package.json | 3 ++- reader/Dockerfile | 2 +- reader/package.json | 3 ++- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/admin/package.json b/admin/package.json index 6c55bea8..0d138725 100644 --- a/admin/package.json +++ b/admin/package.json @@ -13,7 +13,8 @@ "lint:fix": "eslint --ext .ts ./src --fix", "test:coverage": "cross-env NODE_ENV=test nyc node ./test/test.ts", "test": "run-p build lint test:coverage", - "test:build": "tsc -p ./test/tsconfig.json" + "test:build": "tsc -p ./test/tsconfig.json", + "start": "node lib/index.js" }, "bin": { "blockstack-gaia-admin": "./cmd/index.js" diff --git a/hub/Dockerfile b/hub/Dockerfile index 35171382..372414fa 100644 --- a/hub/Dockerfile +++ b/hub/Dockerfile @@ -12,4 +12,4 @@ RUN apk add --no-cache --virtual .build-deps alpine-sdk python && \ npm prune --production && \ apk del .build-deps -CMD ["node", "lib/index.js"] \ No newline at end of file +CMD ["npm", "run", "start"] diff --git a/hub/package.json b/hub/package.json index 24dc7a20..182e88b7 100644 --- a/hub/package.json +++ b/hub/package.json @@ -69,7 +69,8 @@ "lint:fix": "eslint --ext .ts ./src --fix", "test:build": "tsc -p ./test/tsconfig.json", "test:coverage": "cross-env NODE_ENV=test LOCAL_DRIVER_CONFIG_TEST_DATA=configs/drivers.json nyc node ./test/src/index.ts", - "test": "npm-run-all build --parallel lint test:coverage" + "test": "npm-run-all build --parallel lint test:coverage", + "start": "node lib/index.js" }, "repository": { "type": "git", diff --git a/reader/Dockerfile b/reader/Dockerfile index 8dffb4ac..c7e61094 100644 --- a/reader/Dockerfile +++ b/reader/Dockerfile @@ -10,4 +10,4 @@ RUN npm install && \ npm run build && \ npm prune --production -CMD ["node", "lib/index.js"] \ No newline at end of file +CMD ["npm", "run", "start"] diff --git a/reader/package.json b/reader/package.json index b8acbc8e..6e3cd3e4 100644 --- a/reader/package.json +++ b/reader/package.json @@ -49,7 +49,8 @@ "lint:fix": "eslint --ext .ts ./src --fix", "test:coverage": "cross-env NODE_ENV=test nyc node ./test/test.ts", "test": "run-p lint build test:coverage", - "test:build": "tsc -p ./test/tsconfig.json" + "test:build": "tsc -p ./test/tsconfig.json", + "start": "node lib/index.js" }, "repository": { "type": "git",