From a605c62e11e591d3bb9bba403d68987249739b25 Mon Sep 17 00:00:00 2001 From: Lukas | AstroGD Date: Thu, 27 Feb 2025 11:07:58 +0100 Subject: [PATCH] fix: Pnpm not found error --- latest/Dockerfile | 3 ++- lts/Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/latest/Dockerfile b/latest/Dockerfile index 206592c..d52c732 100644 --- a/latest/Dockerfile +++ b/latest/Dockerfile @@ -1,5 +1,6 @@ FROM node:alpine AS base -ENV PNPM_HOME="./.pnpm" +ENV PNPM_HOME="./.pnpm" \ + PATH="$PNPM_HOME:$PATH" RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.shrc" SHELL="$(which sh)" sh - &&\ apk add --no-cache openssl USER node \ No newline at end of file diff --git a/lts/Dockerfile b/lts/Dockerfile index f03c2bd..4658129 100644 --- a/lts/Dockerfile +++ b/lts/Dockerfile @@ -1,5 +1,6 @@ FROM node:lts-alpine AS base -ENV PNPM_HOME="./.pnpm" +ENV PNPM_HOME="./.pnpm" \ + PATH="$PNPM_HOME:$PATH" RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.shrc" SHELL="$(which sh)" sh - &&\ apk add --no-cache openssl USER node \ No newline at end of file