From 29145dde84ff55ee38bf075d8b40426730a78d3e Mon Sep 17 00:00:00 2001 From: "XPS\\Micro" Date: Sat, 31 Jan 2026 12:39:31 +0100 Subject: [PATCH] fix: switch from Alpine to Debian slim Node.js image to resolve SWC binary loading issue - Changed FROM node:20-alpine to node:20-slim for both builder and runner stages - Alpine (musl) is incompatible with Next.js SWC binary (glibc) - Debian slim provides 80% smaller image compared to full node:20 (~180MB vs ~900MB) - Fully compatible with Next.js and SWC without any patches - Better performance and stability on Synology NAS --- frontend/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 165d2e5..a44a00b 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,5 +1,5 @@ # Build stage -FROM node:20-alpine AS builder +FROM node:20-slim AS builder WORKDIR /app @@ -15,7 +15,7 @@ ENV NEXT_TELEMETRY_DISABLED=1 RUN npm run build # Production stage -FROM node:20-alpine AS runner +FROM node:20-slim AS runner WORKDIR /app