From 6289683fced89b4417990e0892edd41c46110d4b Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Wed, 17 Sep 2025 15:29:25 +0800 Subject: [PATCH] =?UTF-8?q?refactor(Dockerfile):=20=E4=BD=BF=E7=94=A8=20al?= =?UTF-8?q?pine=20=E7=89=88=E6=9C=AC=E5=9F=BA=E7=A1=80=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E4=BB=A5=E5=87=8F=E5=B0=8F=E4=BD=93=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将基础镜像从官方 Node.js 改为 node:24-alpine,既固定了版本又减少了镜像体积 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 536aa85..d0d5a92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# 使用官方 Node.js 作为基础镜像;不适用 alpine 版本,这样可以自带git +# 使用 node:24-alpine 作为基础镜像,固定版本+减少体积 FROM node:24-alpine AS builder # 在容器中创建目录