From f163b4e602aab11ff8c36aaf00dcbcf964be26fd Mon Sep 17 00:00:00 2001 From: Tony Date: Fri, 4 Oct 2024 14:03:03 -0700 Subject: [PATCH] build(docker): use corepack before setting registry (#17004) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e5a2789eee..9089f0ca95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ WORKDIR /app ARG USE_CHINA_NPM_REGISTRY=0 RUN \ set -ex && \ + corepack enable pnpm && \ if [ "$USE_CHINA_NPM_REGISTRY" = 1 ]; then \ echo 'use npm mirror' && \ npm config set registry https://registry.npmmirror.com && \ @@ -23,7 +24,6 @@ COPY ./package.json /app/ RUN \ set -ex && \ export PUPPETEER_SKIP_DOWNLOAD=true && \ - corepack enable pnpm && \ pnpm install --frozen-lockfile && \ pnpm rb