From 3331a7144c985a2eb3d2cbd91554aae9188a0d03 Mon Sep 17 00:00:00 2001 From: Felipe Lalanne <1822826+pipex@users.noreply.github.com> Date: Wed, 18 Oct 2023 17:32:43 -0300 Subject: [PATCH] Ignore scripts when installing dependencies This is to prevent issues with https://github.com/sinonjs/sinon/issues/2557 --- .npmrc | 1 + Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.npmrc b/.npmrc index 43c97e7..9951b11 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ package-lock=false +ignore-scripts=true diff --git a/Dockerfile b/Dockerfile index 3aebf64..26f421f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN apk add --update curl WORKDIR /usr/src/app # Copies the package.json first for better cache on later pushes -COPY package.json ./ +COPY package.json .npmrc ./ # Install dependencies RUN npm install