This commit is contained in:
@@ -18,9 +18,15 @@ COPY package.json ./
|
||||
# 安装所有依赖
|
||||
RUN npm install --legacy-peer-deps
|
||||
|
||||
# 安装 git (用于获取 commit 信息)
|
||||
RUN apk add --no-cache git
|
||||
|
||||
# 复制源代码
|
||||
COPY . .
|
||||
|
||||
# 列出文件确认复制成功
|
||||
RUN ls -la
|
||||
|
||||
# 构建 H5 生产版本
|
||||
RUN npm run build:h5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user