# Build static site with Bun FROM oven/bun:1 AS builder WORKDIR /app COPY package.json bun.lock ./ RUN bun install --frozen-lockfile COPY . . RUN bun run generate # Serve generated files FROM nginx:alpine COPY --from=builder /app/generated /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]