From 398ed50e134705f972cab5ff8e9dbd193fa380cc Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Fri, 3 Feb 2023 19:56:42 +0700 Subject: [PATCH] Updated pnpm and npm --- Dockerfile | 7 +++++-- Dockerfile.slim | 3 +++ README.md | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 274cc60..fb55db7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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)" \ diff --git a/Dockerfile.slim b/Dockerfile.slim index 56d8ec1..c53e40c 100644 --- a/Dockerfile.slim +++ b/Dockerfile.slim @@ -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)" \ diff --git a/README.md b/README.md index 6ebda9a..38e576c 100644 --- a/README.md +++ b/README.md @@ -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)