From 2594f49cafcf3d0768d05af488a4040345f26e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20F=C3=B6rtsch?= Date: Mon, 2 Mar 2026 22:28:20 +0100 Subject: [PATCH] fix docker build: use npm for vite build stage 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 --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4f06d88..bd003fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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