# Build stage FROM oven/bun:latest AS build WORKDIR /app COPY package.json bun.lock* ./ RUN bun install --frozen-lockfile COPY . . RUN bun run build # Production stage FROM nginx:alpine COPY --from=build /app/dist /usr/share/nginx/html COPY <<'EOF' /etc/nginx/conf.d/default.conf server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; location / { try_files $uri $uri/ /index.html; } } EOF EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]