From bc9645e8bf3ba7734a7bd9e59b87d77ad82938ac Mon Sep 17 00:00:00 2001 From: Torsten Widmann Date: Sat, 28 Sep 2024 12:09:36 +0200 Subject: [PATCH] add pnpm to node images (#252) * add pnpm to node images * removed pnpm from 12 till 17, because as pnpm is only available from version 18 --- nodejs/12/Dockerfile | 2 +- nodejs/14/Dockerfile | 2 +- nodejs/18/Dockerfile | 5 +++++ nodejs/19/Dockerfile | 5 +++++ nodejs/20/Dockerfile | 5 +++++ nodejs/21/Dockerfile | 5 +++++ 6 files changed, 22 insertions(+), 2 deletions(-) diff --git a/nodejs/12/Dockerfile b/nodejs/12/Dockerfile index e85daf71c..348c9fdc0 100644 --- a/nodejs/12/Dockerfile +++ b/nodejs/12/Dockerfile @@ -12,7 +12,7 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container -STOPSIGNAL SIGINT +STOPSIGNAL SIGINT COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/nodejs/14/Dockerfile b/nodejs/14/Dockerfile index fe2764d4d..c0d53ee6e 100644 --- a/nodejs/14/Dockerfile +++ b/nodejs/14/Dockerfile @@ -12,7 +12,7 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container -STOPSIGNAL SIGINT +STOPSIGNAL SIGINT COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/nodejs/18/Dockerfile b/nodejs/18/Dockerfile index 6abcc86c0..6117c85f5 100644 --- a/nodejs/18/Dockerfile +++ b/nodejs/18/Dockerfile @@ -8,6 +8,11 @@ RUN apt update \ RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global +# install pnpm +RUN npm install -g corepack +RUN corepack enable +RUN corepack prepare pnpm@latest --activate + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/nodejs/19/Dockerfile b/nodejs/19/Dockerfile index 4bfe3c1f9..c3f3b9d70 100644 --- a/nodejs/19/Dockerfile +++ b/nodejs/19/Dockerfile @@ -8,6 +8,11 @@ RUN apt update \ RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global +# install pnpm +RUN npm install -g corepack +RUN corepack enable +RUN corepack prepare pnpm@latest --activate + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/nodejs/20/Dockerfile b/nodejs/20/Dockerfile index a42270fb0..691e8b2fb 100644 --- a/nodejs/20/Dockerfile +++ b/nodejs/20/Dockerfile @@ -8,6 +8,11 @@ RUN apt update \ RUN npm install npm@latest typescript ts-node @types/node --location=global +# install pnpm +RUN npm install -g corepack +RUN corepack enable +RUN corepack prepare pnpm@latest --activate + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/nodejs/21/Dockerfile b/nodejs/21/Dockerfile index 7de0f65b3..8f6953ca3 100644 --- a/nodejs/21/Dockerfile +++ b/nodejs/21/Dockerfile @@ -8,6 +8,11 @@ RUN apt update \ RUN npm install npm@latest typescript ts-node @types/node --location=global +# install pnpm +RUN npm install -g corepack +RUN corepack enable +RUN corepack prepare pnpm@latest --activate + USER container ENV USER=container HOME=/home/container WORKDIR /home/container