# Build stage of the application FROM oven/bun@sha256:2cd6a1d9e3d505725243c9564cca08465fc6ffb12c065a09261992e650995ee6 AS build WORKDIR /app COPY . . RUN bun i && bun run build # Production stage to run the application FROM cgr.dev/chainguard/nginx@sha256:3e8fceac887c9da2279df810d631388b721ff88d7441d638cecf4388014e4404 AS production COPY --from=build /app/dist /usr/share/nginx/html EXPOSE 8080 ENTRYPOINT ["nginx", "-g", "daemon off;"]