fix(bridge): upgrade Node from 20 to 22 — openclaw requires >=22.12.0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-08 06:23:46 -07:00
parent 805cd849fb
commit a47e894d4b
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@
# ============================================================ # ============================================================
# ── Stage 1: Build OpenClaw from source ────────────────────── # ── Stage 1: Build OpenClaw from source ──────────────────────
FROM node:20-slim AS openclaw-builder FROM node:22-slim AS openclaw-builder
RUN npm install -g pnpm@latest RUN npm install -g pnpm@latest
@ -23,7 +23,7 @@ RUN apt-get update && apt-get install -y git && \
pnpm run build pnpm run build
# ── Stage 2: Build IT0 Bridge ───────────────────────────────── # ── Stage 2: Build IT0 Bridge ─────────────────────────────────
FROM node:20-slim AS bridge-builder FROM node:22-slim AS bridge-builder
WORKDIR /build/bridge WORKDIR /build/bridge
COPY package.json tsconfig.json ./ COPY package.json tsconfig.json ./
@ -32,7 +32,7 @@ COPY src/ ./src/
RUN npm run build RUN npm run build
# ── Stage 3: Final image ────────────────────────────────────── # ── Stage 3: Final image ──────────────────────────────────────
FROM node:20-slim FROM node:22-slim
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
supervisor \ supervisor \