fix: 增加部署超时时间到60分钟,启用 BuildKit 缓存加速构建
Some checks failed
Deploy to Server / deploy (push) Has been cancelled

This commit is contained in:
爽哒哒
2026-03-19 01:43:51 +08:00
parent 636ac24e70
commit b66859498f
2 changed files with 89 additions and 2 deletions

View File

@@ -7,9 +7,10 @@ RUN apk add --no-cache autoconf automake libtool make g++ zlib-dev nasm python3
# 设置工作目录
WORKDIR /app
# 安装依赖
# 安装依赖(使用缓存层)
COPY package.json package-lock.json* ./
RUN npm install --registry=https://registry.npmmirror.com
RUN --mount=type=cache,target=/root/.npm \
npm install --registry=https://registry.npmmirror.com --prefer-offline
# 复制项目文件
COPY . .