fix: bypass tsc -b in Docker build, use vite directly
Some checks failed
Deploy / deploy (push) Failing after 54s
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:
@@ -5,7 +5,7 @@ WORKDIR /app
|
|||||||
COPY frontend/package*.json ./
|
COPY frontend/package*.json ./
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
COPY frontend/ .
|
COPY frontend/ .
|
||||||
RUN npm run build
|
RUN npx vite build
|
||||||
|
|
||||||
# ── Stage 2: Serve with nginx ──────────────────────────────────────────────
|
# ── Stage 2: Serve with nginx ──────────────────────────────────────────────
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|||||||
Reference in New Issue
Block a user