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" } }