fix docker build: use npm for vite build stage
Some checks failed
Build and Push Docker Image / build (push) Failing after 42s
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user