forked from quant-speed-AI/Scoring-System
fix: 增加部署超时时间到60分钟,启用 BuildKit 缓存加速构建
This commit is contained in:
@@ -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 . .
|
||||
|
||||
Reference in New Issue
Block a user