# Build stage
FROM oven/bun:1.3-debian as builder
WORKDIR /app
COPY bun.lock package.json .
RUN bun install --frozen-lockfile
COPY . .
RUN bun run build

# Serve built assets via Vite preview
EXPOSE 4173
CMD ["bun", "run", "preview", "--", "--host", "0.0.0.0", "--port", "4173"]
