修改dockerfile

This commit is contained in:
2026-07-25 22:19:26 +08:00
parent 32decdb15c
commit ea36e1155f

View File

@@ -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