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
This commit is contained in:
Torsten Widmann
2024-09-28 12:09:36 +02:00
committed by GitHub
parent a42febc72c
commit bc9645e8bf
6 changed files with 22 additions and 2 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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