fix docker build: use npm for vite build stage
Some checks failed
Build and Push Docker Image / build (push) Failing after 42s

Bun's node_modules layout causes resolution failures when Node/Vite
tries to load modules. Use npm install + npx vite build for
reliable frontend builds, keep Bun for runtime.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-02 22:28:20 +01:00
parent b22b7d4f83
commit 2594f49caf

View File

@@ -1,8 +1,7 @@
FROM node:22-slim AS build
WORKDIR /app
RUN npm install -g bun
COPY package.json bun.lock* ./
RUN bun install --frozen-lockfile
COPY package.json ./
RUN npm install
COPY . .
RUN npx vite build