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