This commit is contained in:
gpu 2026-02-02 01:04:51 +08:00
parent d39c740598
commit e9be686713

View File

@ -1,8 +1,13 @@
# 构建阶段 # 构建阶段
FROM node:20-alpine AS build FROM node:20-alpine AS build
WORKDIR /app WORKDIR /app
# 配置 npm 镜像加速
RUN npm config set registry https://registry.npmmirror.com
COPY package*.json ./ COPY package*.json ./
RUN rm -f package-lock.json && npm install RUN rm -f package-lock.json && npm install --legacy-peer-deps
COPY . . COPY . .
RUN npm run build RUN npm run build