fix: install panel deps in Docker builder stage before build

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
syntaxbullet
2026-02-13 20:53:59 +01:00
parent dc10ad5c37
commit fbb2e0f010

View File

@@ -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