更新 Dockerfile

This commit is contained in:
ywp
2025-10-22 15:50:52 +08:00
parent 6c9e6122f9
commit 4914b9f2c8

View File

@ -8,7 +8,7 @@ WORKDIR /app
# 安装顶层依赖(如果有前端构建)
COPY package*.json ./
RUN npm ci
RUN npm build
RUN npm run build
# 拷贝前端、后端、静态资源
COPY dist/ ./dist
COPY public/ ./public