Skip to content

Commit

Permalink
add pnpm to node images (#252)
Browse files Browse the repository at this point in the history
* add pnpm to node images

* removed pnpm from 12 till 17, because as pnpm is only available from version 18
  • Loading branch information
gOOvER committed Sep 28, 2024
1 parent a42febc commit bc9645e
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nodejs/12/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nodejs/14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions nodejs/18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ RUN apt update \

RUN npm install [email protected] 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
Expand Down
5 changes: 5 additions & 0 deletions nodejs/19/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ RUN apt update \

RUN npm install [email protected] 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
Expand Down
5 changes: 5 additions & 0 deletions nodejs/20/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions nodejs/21/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc9645e

Please sign in to comment.