An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
fix: use Node.js build stage for Docker multi-arch compatibility
Yoshiki Miura860893ce0037
diff --git a/Dockerfile b/Dockerfileindex 210cef84..68859be9 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,16 +1,20 @@-# Base image-FROM oven/bun:1.2.12 AS builder+# Build stage - Use Node for Next.js 16 compatibility (Bun lacks worker_threads support on arm64)+FROM node:22-slim AS builderWORKDIR /app+# Install bun for dependency management+RUN npm install -g bun+# Install dependencies (separated for better cache utilization)COPY package.json bun.lock ./RUN bun install# Copy source code and buildCOPY . .-RUN bun next telemetry disable-RUN bun run build+RUN npx next telemetry disable+ENV DATABASE_URL=postgresql://user:pass@localhost:5432/db+RUN npm run build# Runtime stageFROM oven/bun:1.2.12 AS runner