refactor(Dockerfile): 使用 alpine 版本基础镜像以减小体积

将基础镜像从官方 Node.js 改为 node:24-alpine,既固定了版本又减少了镜像体积
This commit is contained in:
feige996
2025-09-17 15:29:25 +08:00
parent 7af33ba0b1
commit 6289683fce

View File

@@ -1,4 +1,4 @@
# 使用官方 Node.js 作为基础镜像;不适用 alpine 版本这样可以自带git
# 使用 node:24-alpine 作为基础镜像,固定版本+减少体积
FROM node:24-alpine AS builder
# 在容器中创建目录