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