From c51cab25362aabfc77b8742bfd47bcb0dec7b4d1 Mon Sep 17 00:00:00 2001 From: Benjamin Guedj Date: Mon, 1 Jul 2024 11:00:10 +0200 Subject: [PATCH] fix: Omitting --ignore-scripts can lead to the execution of shell scripts --- back/strapi/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/strapi/Dockerfile b/back/strapi/Dockerfile index a802d0e69..ba68a7ec7 100644 --- a/back/strapi/Dockerfile +++ b/back/strapi/Dockerfile @@ -13,7 +13,7 @@ ARG NODE_HOME=/opt/$NODE_PACKAGE ENV NODE_PATH $NODE_HOME/lib/node_modules ENV PATH $NODE_HOME/bin:$PATH RUN curl https://nodejs.org/dist/v$NODE_VERSION/$NODE_PACKAGE.tar.gz | tar -xzC /opt/ -RUN npm i -g yarn +RUN npm i -g --ignore-scripts yarn RUN apt-get update && \ apt-get install --no-install-recommends -y \