0606.6
Some checks failed
Next.js CI/CD 流水线 / deploy (push) Failing after 23s

This commit is contained in:
2025-06-06 01:48:10 +08:00
parent 218812b768
commit 102caffcbc

View File

@@ -9,14 +9,14 @@ WORKDIR /app
COPY package.json package-lock.json* ./
# 安装依赖 (使用npm禁用可选依赖)
RUN npm ci --only=production --no-optional && \
RUN npm install --only=production --no-optional && \
npm cache clean --force
# 复制源代码和配置文件
COPY . .
# 重新安装所有依赖用于构建
RUN npm ci --no-optional
RUN npm install --no-optional
# 构建应用
RUN npm run build