32
This commit is contained in:
parent
d39c740598
commit
e9be686713
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user