From 4f3de9ab3c0709018a5254c904d409d8b4314725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Wed, 31 Jan 2024 17:27:46 +0100 Subject: [PATCH] ci: Skip running `postInstall` scripts for all packages except sqlite3 (no-changelog) (#8514) --- docker/images/n8n/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/images/n8n/Dockerfile b/docker/images/n8n/Dockerfile index 83915e568f..970ec7105b 100644 --- a/docker/images/n8n/Dockerfile +++ b/docker/images/n8n/Dockerfile @@ -8,7 +8,8 @@ ENV N8N_VERSION=${N8N_VERSION} ENV NODE_ENV=production ENV N8N_RELEASE_TYPE=stable RUN set -eux; \ - npm install -g --omit=dev n8n@${N8N_VERSION} && \ + npm install -g --omit=dev n8n@${N8N_VERSION} --ignore-scripts && \ + npm rebuild --prefix=/usr/local/lib/node_modules/n8n sqlite3 && \ rm -rf /usr/local/lib/node_modules/n8n/node_modules/@n8n/chat && \ rm -rf /usr/local/lib/node_modules/n8n/node_modules/n8n-design-system && \ rm -rf /usr/local/lib/node_modules/n8n/node_modules/n8n-editor-ui/node_modules && \