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