From 06005a77d72683ddb78844495f5990451b6f708b Mon Sep 17 00:00:00 2001 From: Kostas Christopoulos Date: Tue, 31 Oct 2023 11:55:38 +0200 Subject: [PATCH] fix: simplify core docker build Signed-off-by: Kostas Christopoulos --- Dockerfile | 3 ++- docker-integrations/tendermint/package.json | 2 +- package.json | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8559d078..dfdb8e85 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,8 @@ # FROM node:lts AS appbuild WORKDIR /usr/src/app -COPY . . +COPY package.json yarn.lock lerna.json tsconfig.json ./ +COPY common ./common RUN yarn build:docker RUN cd ./common/docker RUN yarn run build:binaries diff --git a/docker-integrations/tendermint/package.json b/docker-integrations/tendermint/package.json index a6c21057..ef7ac7e4 100644 --- a/docker-integrations/tendermint/package.json +++ b/docker-integrations/tendermint/package.json @@ -8,7 +8,7 @@ "start": "node ./dist/src/index.js", "format": "prettier --write .", "lint": "eslint . --ignore-path ./.eslintignore --ext ts --ext tsx --ext js --ext jsx", - "lint:fix": "eslint --fix . --ignore-path ./.eslintignore --ext ts --ext tsx --ext js --ext jsx", + "lint:fix": "eslint --fix . --ignore-path ./.eslintignore --ext ts --ext tsx --ext js --ext jsx" }, "bin": "./dist/src/index.js", "pkg": { diff --git a/package.json b/package.json index 8b058b3b..2d519fd9 100644 --- a/package.json +++ b/package.json @@ -28,10 +28,10 @@ }, "scripts": { "setup": "lerna clean && yarn install && lerna run build", - "build:docker": "yarn nx reset && yarn install && lerna run build", "graph": "yarn nx graph", "build": "lerna run build", "build:binaries": "lerna run build:binaries --concurrency 1", + "build:docker": "yarn install && lerna run build", "pub": "lerna run build && lerna publish", "build:changed": "lerna run --since origin/master --include-dependents build", "test": "lerna run test", @@ -40,7 +40,7 @@ "clean": "lerna run clean", "lint": "lerna run lint", "lint:fix": "lerna run lint:fix", - "custom-version": "yarn lerna version --conventional-commits=false", + "custom-version": "yarn lerna version --conventional-commits=false" }, "version": "0.0.0" }