forked from syntaxbullet/aurorabot
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:
10
Dockerfile
10
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
|
||||
|
||||
Reference in New Issue
Block a user