From 85c20adb0b5b3a9f1017baa109cf4dd36c42b37c Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 3 Mar 2026 08:34:46 -0800 Subject: [PATCH] fix: add libc6-compat to builder stage for SWC binary The Next.js SWC binary requires libc6-compat on Alpine Linux. It was only installed in the deps stage but not the builder stage, causing build failures on fresh (no-cache) Docker builds. Co-Authored-By: Claude Opus 4.6 --- frontend/mobile-upgrade/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/mobile-upgrade/Dockerfile b/frontend/mobile-upgrade/Dockerfile index 6b570805..6709c7b9 100644 --- a/frontend/mobile-upgrade/Dockerfile +++ b/frontend/mobile-upgrade/Dockerfile @@ -11,6 +11,7 @@ RUN npm ci --only=production=false # 阶段2: 构建 FROM node:20-alpine AS builder +RUN apk add --no-cache libc6-compat WORKDIR /app # 复制依赖