FROM cubetiq/calpine-node:slim LABEL maintainer="sombochea@cubetiqs.com" # Install PNPM ARG PNPM_VERSION=8.6.2 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 # Update NPM package RUN npm install -g npm@latest # Install yarn from npm package RUN npm -g i yarn@latest # Checking packages version RUN echo "NODE: $(node --version)" \ && echo "NPM: $(npm --version)" \ && echo "NPX: $(npx --version)" \ && echo "YARN: $(yarn --version)" \ && echo "PNPM: $(pnpm --version)" COPY entrypoint.sh /usr/local/bin/ RUN chmod +x /usr/local/bin/entrypoint.sh ENTRYPOINT ["entrypoint.sh"] CMD [ "node" ]