Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6779c82

Browse files
committed
chore: add build step to Dockerfile for generating dist directory
1 parent 37c8a27 commit 6779c82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ WORKDIR /app
99
# 安装依赖并构建
1010
RUN --mount=type=cache,target=/root/.npm npm install
1111

12+
# 添加构建步骤以生成 dist 目录
13+
RUN npm run build
14+
1215
FROM node:22.12-alpine AS release
1316

1417
# 从构建阶段复制必要文件

0 commit comments

Comments
 (0)