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
|
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 --from=deps /app/node_modules ./node_modules
|
||||||
|
|
||||||
# Copy source code
|
# Install panel deps and build
|
||||||
COPY . .
|
RUN cd panel && bun install --frozen-lockfile && bun run build
|
||||||
|
|
||||||
# Build admin panel
|
|
||||||
RUN cd panel && ../node_modules/.bin/vite build
|
|
||||||
|
|
||||||
# ============================================
|
# ============================================
|
||||||
# Production stage - minimal runtime image
|
# Production stage - minimal runtime image
|
||||||
|
|||||||
Reference in New Issue
Block a user