fix(deploy): bump Dockerfile Node from 20-alpine to 22-alpine
Some checks failed
Build & Deploy to EasyPanel / build-and-deploy (push) Has been cancelled
Lint & Test / build-check (push) Has been cancelled

Astro 6.x requires Node >=22.12.0. The previous Dockerfile used
node:20-alpine, which the Astro CLI rejected with:

  Node.js v20.20.2 is not supported by Astro!
  Please upgrade Node.js to a supported version: ">=22.12.0"

EasyPanel pulled the change, ran the build, and failed at
`RUN npm run build`. Bumping to node:22-alpine fixes it.

Also added two 'common failure' sections to docs/ci-setup.md
covering the nixpacks 'No start command' and Node version
mismatch errors we just hit.
This commit is contained in:
hermes
2026-06-09 13:33:14 +07:00
parent d73e48351f
commit 21a538cbb8
2 changed files with 15 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
# =====================================================================
# Stage 1: Build the Astro static site
# =====================================================================
FROM node:20-alpine AS builder
FROM node:22-alpine AS builder
WORKDIR /app