修改dockerfile

This commit is contained in:
brother7 committed 2026-07-25 22:19:26 +08:00
1 parent 32decdb15c
commit ea36e1155f
1 file changed
+3 -2
+3 -2
View File
@@ -1,8 +1,9 @@
FROM node:22-alpine AS build FROM node:22-alpine AS build
WORKDIR /app 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 ./ COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile RUN pnpm install --frozen-lockfile --registry=${NPM_REGISTRY}
COPY . . COPY . .
RUN pnpm build RUN pnpm build