diff --git a/nodejs/18/Dockerfile b/nodejs/18/Dockerfile index 11fe5f1..457e06a 100644 --- a/nodejs/18/Dockerfile +++ b/nodejs/18/Dockerfile @@ -8,6 +8,9 @@ RUN apt update \ RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global +RUN corepack enable \ + && 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 ee47a86..d29abd4 100644 --- a/nodejs/19/Dockerfile +++ b/nodejs/19/Dockerfile @@ -8,6 +8,9 @@ RUN apt update \ RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global +RUN corepack enable \ + && 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 531e253..4839674 100644 --- a/nodejs/20/Dockerfile +++ b/nodejs/20/Dockerfile @@ -8,6 +8,9 @@ RUN apt update \ RUN npm install npm@latest typescript ts-node @types/node --location=global +RUN corepack enable \ + && corepack prepare pnpm@latest --activate + USER container ENV USER=container HOME=/home/container WORKDIR /home/container