From 9b982ad9a57d34e16de726618e42a3eb018668a6 Mon Sep 17 00:00:00 2001 From: domverse Date: Sat, 28 Feb 2026 12:32:33 +0100 Subject: [PATCH] fix: bypass tsc -b in Docker build, use vite directly tsc -b with project references fails in the Alpine Docker environment (TypeScript 5.9 + no composite:true on referenced configs). Vite uses esbuild for TS compilation anyway, so tsc -b only served as a type-check which is redundant in a production build. Co-Authored-By: Claude Sonnet 4.6 --- flight-comparator/Dockerfile.frontend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flight-comparator/Dockerfile.frontend b/flight-comparator/Dockerfile.frontend index 62e2f23..7c5d8c7 100644 --- a/flight-comparator/Dockerfile.frontend +++ b/flight-comparator/Dockerfile.frontend @@ -5,7 +5,7 @@ WORKDIR /app COPY frontend/package*.json ./ RUN npm ci COPY frontend/ . -RUN npm run build +RUN npx vite build # ── Stage 2: Serve with nginx ────────────────────────────────────────────── FROM nginx:alpine