From dbd807f77b72a7abc2029d09ac91fe1a70acaff3 Mon Sep 17 00:00:00 2001 From: gOOvER Date: Fri, 27 Jan 2023 20:11:24 +0100 Subject: [PATCH] add npm install npm@latest -g --- nodejs/12/Dockerfile | 2 ++ nodejs/14/Dockerfile | 2 ++ nodejs/16/Dockerfile | 2 ++ nodejs/17/Dockerfile | 2 ++ nodejs/18/Dockerfile | 2 ++ 5 files changed, 10 insertions(+) diff --git a/nodejs/12/Dockerfile b/nodejs/12/Dockerfile index da1ae9b..a8b8bae 100644 --- a/nodejs/12/Dockerfile +++ b/nodejs/12/Dockerfile @@ -7,6 +7,8 @@ RUN apt update \ && npm -g install npm@latest \ && useradd -m -d /home/container container +RUN npm install npm@latest -g + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/nodejs/14/Dockerfile b/nodejs/14/Dockerfile index d5ac2ec..5d2a159 100644 --- a/nodejs/14/Dockerfile +++ b/nodejs/14/Dockerfile @@ -7,6 +7,8 @@ RUN apt update \ && npm -g install npm@latest \ && useradd -m -d /home/container container +RUN npm install npm@latest -g + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/nodejs/16/Dockerfile b/nodejs/16/Dockerfile index 354df7b..1b54f5d 100644 --- a/nodejs/16/Dockerfile +++ b/nodejs/16/Dockerfile @@ -7,6 +7,8 @@ RUN apt update \ && npm -g install npm@latest \ && useradd -m -d /home/container container +RUN npm install npm@latest -g + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/nodejs/17/Dockerfile b/nodejs/17/Dockerfile index 9a35af5..da504ee 100644 --- a/nodejs/17/Dockerfile +++ b/nodejs/17/Dockerfile @@ -7,6 +7,8 @@ RUN apt update \ && npm -g install npm@latest \ && useradd -m -d /home/container container +RUN npm install npm@latest -g + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/nodejs/18/Dockerfile b/nodejs/18/Dockerfile index 8ce29ce..ff49997 100644 --- a/nodejs/18/Dockerfile +++ b/nodejs/18/Dockerfile @@ -7,6 +7,8 @@ RUN apt update \ && npm -g install npm@latest \ && useradd -m -d /home/container container +RUN npm install npm@latest -g + USER container ENV USER=container HOME=/home/container WORKDIR /home/container