From ea36e1155fb4876dae9b8bc85f5963196ff567a1 Mon Sep 17 00:00:00 2001 From: brother7 <7brother7@gmail.com> Date: Sat, 25 Jul 2026 22:19:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/Dockerfile b/web/Dockerfile index cea9f0b..217100d 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -1,8 +1,9 @@ FROM node:22-alpine AS build WORKDIR /app -RUN corepack enable && corepack prepare pnpm@10.17.0 --activate +ARG NPM_REGISTRY=https://registry.npmmirror.com +RUN npm install --global pnpm@10.17.0 --registry=${NPM_REGISTRY} COPY package.json pnpm-lock.yaml ./ -RUN pnpm install --frozen-lockfile +RUN pnpm install --frozen-lockfile --registry=${NPM_REGISTRY} COPY . . RUN pnpm build