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
WORKDIR /app
# 配置 npm 镜像加速
RUN npm config set registry https://registry.npmmirror.com
COPY package*.json ./
RUN rm -f package-lock.json && npm install
RUN rm -f package-lock.json && npm install --legacy-peer-deps
COPY . .
RUN npm run build