Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

stable/nodejs: replace npm w/ pnpm #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion stable/nodejs/Dockerfile.10
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ ADD kubeless-npm-install.sh /

WORKDIR /kubeless_rt/

RUN npm install
RUN npm install -g pnpm \
&& pnpm install

USER 1000

Expand Down
3 changes: 2 additions & 1 deletion stable/nodejs/Dockerfile.12
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ ADD kubeless-npm-install.sh /

WORKDIR /kubeless_rt/

RUN npm install
RUN npm install -g pnpm \
&& pnpm install

USER 1000

Expand Down
3 changes: 2 additions & 1 deletion stable/nodejs/Dockerfile.14
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ ADD kubeless-npm-install.sh /

WORKDIR /kubeless_rt/

RUN npm install
RUN npm install -g pnpm \
&& pnpm install

USER 1000

Expand Down
6 changes: 3 additions & 3 deletions stable/nodejs/kubeless-npm-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ if [[ -n ${scope} ]]; then
fi

cd $KUBELESS_INSTALL_VOLUME
npm config set ${scope}registry ${registry}
pnpm config set ${scope}registry ${registry}

if [[ -n ${NPM_CONFIG_EXTRA} ]]; then
npm config set ${NPM_CONFIG_EXTRA}
pnpm config set ${NPM_CONFIG_EXTRA}
fi

npm install --production --prefix=$KUBELESS_INSTALL_VOLUME
pnpm install --prod --dir $KUBELESS_INSTALL_VOLUME