This commit is contained in:
parent
f4e9e72ecc
commit
5e8f5f50f3
|
|
@ -12,11 +12,15 @@ RUN yarn install --frozen-lockfile
|
|||
COPY . .
|
||||
|
||||
# 构建生产环境代码
|
||||
RUN yarn build
|
||||
#RUN yarn build
|
||||
|
||||
# ✅ 添加调试输出:列出构建产物
|
||||
RUN yarn build && ls -lh /app/dist && find /app/dist
|
||||
|
||||
# 导出阶段
|
||||
FROM alpine:3.18 AS export
|
||||
WORKDIR /export
|
||||
|
||||
|
||||
# 仅导出编译产物
|
||||
COPY --from=builder /app/dist ./dist
|
||||
|
|
|
|||
Loading…
Reference in New Issue