From 2c7c63e15e3b7af800710770a458f93ff67eb1cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michalina=20Ciencia=C5=82a?= Date: Tue, 6 Jun 2023 16:10:53 +0200 Subject: [PATCH] Don't run postinstall script separately from yarn install Background: Previously we've been running postinstall script in a separate step from the `yarn install` command. We've been doing that as a workaround for a problem we had with the postinstall script in the `@threshold-network/solidity-contracts` package (the script in that package often randomly failed). Running `yarn upgrade` with `--ignore-scripts` flag prevented the execution of postinstall script in the main project and its depandencies. And running `yarn run postinstall` after did execute the postinstall script in the main project. The change: Recently we have refactored the `@threshold-network/solidity-contracts` project and got rid of the problematic script. We can go back to executing `yarn install` without the `--ignore-scripts` flag. --- monitoring/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/monitoring/Dockerfile b/monitoring/Dockerfile index 2212d741e..b65cbb238 100644 --- a/monitoring/Dockerfile +++ b/monitoring/Dockerfile @@ -24,8 +24,7 @@ COPY package.json yarn.lock ./ COPY tsconfig.json ./ COPY src ./src -RUN yarn install --frozen-lockfile --ignore-scripts -RUN yarn run postinstall +RUN yarn install --frozen-lockfile RUN yarn build