fix: bypass tsc -b in Docker build, use vite directly
Some checks failed
Deploy / deploy (push) Failing after 54s

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 <noreply@anthropic.com>
This commit is contained in:
2026-02-28 12:32:33 +01:00
parent de491dbb1f
commit 9b982ad9a5

View File

@@ -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