From 3670aceb4a7673f702f4ec36677491a8bdd32df8 Mon Sep 17 00:00:00 2001 From: empty Date: Sat, 27 Dec 2025 17:00:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Dockerfile=20?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Node 24 → Node 20(更稳定) - --only=production → --omit=dev(新语法) --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index be4b210..c48ae5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # 使用官方 Node.js 运行时作为基础镜像 -FROM node:24-alpine +FROM node:20-alpine # 设置工作目录 WORKDIR /app @@ -8,7 +8,7 @@ WORKDIR /app COPY package*.json ./ # 安装项目依赖 -RUN npm ci --only=production +RUN npm ci --omit=dev # 复制项目文件 COPY . .