Update Node base images to 22 LTS

This commit is contained in:
yeasy
2026-05-01 10:24:43 +00:00
parent e6527ae769
commit 7e3f90b522
10 changed files with 22 additions and 22 deletions
+2 -2
View File
@@ -93,14 +93,14 @@ RUN echo "Node version: $NODE_VERSION"
```docker
ARG BASE_VERSION=alpine
FROM node:20-${BASE_VERSION} AS builder
FROM node:22-${BASE_VERSION} AS builder
## 需要重新声明
ARG NODE_VERSION=20
RUN echo "Building with Node $NODE_VERSION"
FROM node:20-${BASE_VERSION}
FROM node:22-${BASE_VERSION}
## 每个阶段都需要重新声明