From f49b818a0fc7c23ef9a9ef8358fbb0e0663cb2a7 Mon Sep 17 00:00:00 2001 From: ycz008 Date: Mon, 29 Jan 2024 15:34:21 +0800 Subject: [PATCH] update node Dockerfile --- build-image/node/Dockerfile_16.17.1 | 8 ++++++-- build-image/node/Dockerfile_nvm | 11 ----------- 2 files changed, 6 insertions(+), 13 deletions(-) delete mode 100644 build-image/node/Dockerfile_nvm diff --git a/build-image/node/Dockerfile_16.17.1 b/build-image/node/Dockerfile_16.17.1 index 09ba5fc..752a1e1 100644 --- a/build-image/node/Dockerfile_16.17.1 +++ b/build-image/node/Dockerfile_16.17.1 @@ -1,8 +1,12 @@ FROM node:16.17.1 -LABEL smallkoudai +LABEL beaconfire RUN apt-get update && \ apt-get install -y --no-install-recommends ca-certificates curl rsync && \ rm -rf /var/lib/apt/lists/ && \ - git config --global --add safe.directory '*' + git config --global --add safe.directory '*' && \ + npm install -g pnpm && \ + pnpm config set store-dir ~/.pnpm && \ + pnpm config set modules-dir ~/.pnpm && \ + pnpm config set state-dir ~/.pnpm/state diff --git a/build-image/node/Dockerfile_nvm b/build-image/node/Dockerfile_nvm deleted file mode 100644 index 4b83fe3..0000000 --- a/build-image/node/Dockerfile_nvm +++ /dev/null @@ -1,11 +0,0 @@ -FROM ubuntu:23.04 - -LABEL smallkoudai - -RUN apt-get update && \ - apt-get install -y --no-install-recommends ca-certificates curl git git-lfs && \ - mkdir -p $HOME/.nvm && \ - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash && \ - . $HOME/.bashrc && \ - nvm install 16.20.1 && nvm alias default && nvm install 18.17.0 && nvm install 20.5.0 -ENV NVM_DIR=$HOME/.nvm \ No newline at end of file