From 348877a82eefa50717e00f714288934bed826d76 Mon Sep 17 00:00:00 2001 From: Gilang Aryo Date: Fri, 27 Nov 2026 17:00:17 +0700 Subject: [PATCH] fix: build pakai node 22 + sharp --- Dockerfile | 2 ++ package.json | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 5c28567..663dd4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,8 @@ WORKDIR /app COPY . . # postinstall menjalankan `fumadocs-mdx` (butuh source.config.ts & content/) RUN npm ci || npm install +# sharp untuk optimasi gambar Next.js (versi Linux/Alpine) +RUN npm install --no-save sharp ENV NEXT_TELEMETRY_DISABLED=1 ARG SITE_URL diff --git a/package.json b/package.json index 9c6c882..2a6437d 100644 --- a/package.json +++ b/package.json @@ -25,5 +25,8 @@ "postcss": "^8.5.0", "tailwindcss": "^4.1.0", "typescript": "^5.8.0" + }, + "engines": { + "node": ">=20" } }