From fbb2e0f010f6c91a514ea2f0cb1d08216d0d47e8 Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Fri, 13 Feb 2026 20:53:59 +0100 Subject: [PATCH] fix: install panel deps in Docker builder stage before build Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 038646d..4a6d022 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,14 +40,12 @@ CMD ["bun", "run", "dev"] # ============================================ FROM base AS builder -# Copy dependencies from deps stage +# Copy source code first, then deps on top (so node_modules aren't overwritten) +COPY . . COPY --from=deps /app/node_modules ./node_modules -# Copy source code -COPY . . - -# Build admin panel -RUN cd panel && ../node_modules/.bin/vite build +# Install panel deps and build +RUN cd panel && bun install --frozen-lockfile && bun run build # ============================================ # Production stage - minimal runtime image