Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add install pnpm #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions nodejs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ FROM kubespheredev/builder-base:v4.1.0

ENV NODE_VERSION v16.20.2

# install nodejs,if need node.js v20 replace url: https://deb.nodesource.com/setup_20.x
RUN curl -fsSL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh && \
bash nodesource_setup.sh && \
apt-get install nodejs -y && \
node -v && npm -v

# install yarn
RUN npm install -g yarn && \
yarn config set cache-folder /root/.yarn

# install pnpm
RUN npm install -g pnpm