From 427b9a7a8228dd94ec8eb4c175fb11d8e5139a40 Mon Sep 17 00:00:00 2001 From: Anatolios Laskaris Date: Wed, 26 Jul 2023 21:57:45 +0300 Subject: [PATCH] chore: Use pnpm to install node packages (#165) Use pnpm to install node packages --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 52f019d..6b798af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -153,10 +153,14 @@ RUN \ /var/tmp/* # install ceramic and glaze -RUN --mount=type=cache,target=/var/cache/npm \ - npm install --cache /var/cache/npm --global \ - @ceramicnetwork/cli@$CERAMIC_VERSION \ - @glazed/cli@$GLAZED_VERSION +ENV SHELL=bash +ENV PNPM_HOME="/pnpm" +ENV PATH="$PNPM_HOME:$PATH" +RUN curl -fsSL https://get.pnpm.io/install.sh | sh - +RUN --mount=type=cache,id=pnpm,target=/pnpm/store \ + pnpm install --prod -g \ + @ceramicnetwork/cli@$CERAMIC_VERSION \ + @glazed/cli@$GLAZED_VERSION # copy geth COPY --from=prepare-geth /usr/local/bin/geth /usr/bin/geth