chore(node): proje Node 22'ye sabit — .npmrc use-node-version, engines, Dockerfile node:22-alpine
Some checks failed
Deploy / deploy (push) Has been cancelled

better-sqlite3 Node 22 (ABI 127) için derli; kabuktaki Node 20 ile npm run dev tüm
sayfaları ERR_DLOPEN_FAILED'a düşürüyordu. pnpm artık her komutu 22.21.1 ile koşar;
.npmrc Docker'a girmez (Alpine'de glibc Node indirtir), imaj kendi node:22'sini kullanır.
launch.json dev yapılandırmaları npm yerine pnpm. Lokal docker build + run doğrulandı.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
bilalgursen
2026-10-27 00:11:08 +03:00
parent 830b21199f
commit 42f9e483a6
6 changed files with 16 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
FROM node:20-alpine AS base
FROM node:22-alpine AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable && corepack prepare pnpm@10.8.1 --activate
@@ -43,7 +43,7 @@ RUN --mount=type=cache,id=next-cache,target=/app/.next/cache \
RUN sh scripts/standalone-linkleri-onar.sh .next/standalone
# ── Çalıştırma katmanı ──
FROM node:20-alpine AS runner
FROM node:22-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production