From bb51c0d74dbfcd7104da6b652c2b7f968084219d Mon Sep 17 00:00:00 2001 From: ycz008 Date: Thu, 1 Feb 2024 18:04:20 +0800 Subject: [PATCH] add node-build dockerfile ENV --- build-image/node/Dockerfile_16.17.1 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build-image/node/Dockerfile_16.17.1 b/build-image/node/Dockerfile_16.17.1 index c2835d1..3872a7f 100644 --- a/build-image/node/Dockerfile_16.17.1 +++ b/build-image/node/Dockerfile_16.17.1 @@ -2,10 +2,11 @@ FROM node:16.17.1 LABEL beaconfire -ENV PNPM_HOME="~/.pnpm" PATH="$PATH:$PNPM_HOME" - +ENV PNPM_HOME="/root/.pnpm" +ENV PATH="$PNPM_HOME:$PATH" RUN apt-get update && \ - apt-get install -y --no-install-recommends ca-certificates curl rsync && \ + apt-get install -y --no-install-recommends ca-certificates curl && \ rm -rf /var/lib/apt/lists/ && \ git config --global --add safe.directory '*' && \ - npm install -g pnpm + npm install -g pnpm && \ + pnpm config set store-dir /root/.pnpm