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