Updated pnpm and npm

This commit is contained in:
Sambo Chea 2023-02-03 19:56:42 +07:00
parent 4eb9a8d71d
commit 398ed50e13
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490
3 changed files with 9 additions and 3 deletions

View File

@ -2,7 +2,7 @@ FROM cubetiq/calpine-node:slim
LABEL maintainer="sombochea@cubetiqs.com"
# Install PNPM
ARG PNPM_VERSION=7.26.0
ARG PNPM_VERSION=7.26.3
ENV PNPM_HOME=/root/.local/share/pnpm
ENV PATH=$PATH:$PNPM_HOME
@ -11,8 +11,11 @@ RUN echo "Installing PNPM version: $PNPM_VERSION" && \
curl -fsSL "https://github.com/pnpm/pnpm/releases/download/v${PNPM_VERSION}/pnpm-linuxstatic-x64" -o /bin/pnpm && chmod +x /bin/pnpm && \
apk del curl
# Update NPM package
RUN npm install -g npm@latest
# Install yarn from npm package
RUN npm -g i yarn
RUN npm -g i yarn@latest
# Checking packages version
RUN echo "NODE: $(node --version)" \

View File

@ -77,6 +77,9 @@ RUN addgroup -g ${USER_UID} node \
&& rm -f "node-v$NODE_VERSION-linux-$ARCH-musl.tar.xz" \
&& apk del .build-deps
# Update NPM package
RUN npm install -g npm@latest
# Checking packages version
RUN echo "NODE: $(node --version)" \
&& echo "NPM: $(npm --version)" \

View File

@ -5,7 +5,7 @@
- CUBETIQ Alpine OS Linux (Latest)
- Nodejs 16 (16.19.0)
- PNPM 7 (7.26.0)
- PNPM 7 (7.26.3)
# [Docker Hub](https://hub.docker.com/r/cubetiq/calpine-node)