Breaking changes for alpine linux replace by node:18-alpine

This commit is contained in:
2023-09-12 21:03:57 +07:00
parent 4521bed92d
commit fa9bec5af4
2 changed files with 3 additions and 86 deletions

View File

@@ -2,20 +2,13 @@ FROM cubetiq/calpine-node:slim
LABEL maintainer="sombochea@cubetiqs.com"
# Install PNPM
ARG PNPM_VERSION=8.7.5
ENV PNPM_HOME=/root/.local/share/pnpm
ENV PATH=$PATH:$PNPM_HOME
RUN echo "Installing PNPM version: $PNPM_VERSION" && \
apk add --no-cache curl && \
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
RUN npm install -g pnpm@latest
# Update NPM package
RUN npm install -g npm@latest
# Install yarn from npm package
RUN npm -g i yarn@latest
RUN npm install -g yarn@latest --force
# Checking packages version
RUN echo "NODE: $(node --version)" \