更新 Dockerfile
This commit is contained in:
@ -8,9 +8,10 @@ WORKDIR /app
|
||||
# 安装顶层依赖(如果有前端构建)
|
||||
|
||||
# 再复制源码(包括前端项目)
|
||||
COPY . .
|
||||
|
||||
RUN npm config set registry https://registry.npmmirror.com
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
# 拷贝前端、后端、静态资源
|
||||
|
||||
|
||||
Reference in New Issue
Block a user